Trait mz_sql::catalog::CatalogSchema
source · pub trait CatalogSchema {
// Required methods
fn database(&self) -> &ResolvedDatabaseSpecifier;
fn name(&self) -> &QualifiedSchemaName;
fn id(&self) -> &SchemaSpecifier;
fn has_items(&self) -> bool;
fn item_ids(&self) -> Box<dyn Iterator<Item = CatalogItemId> + '_>;
fn owner_id(&self) -> RoleId;
fn privileges(&self) -> &PrivilegeMap;
}
Expand description
A schema in a SessionCatalog
.
Required Methods§
sourcefn database(&self) -> &ResolvedDatabaseSpecifier
fn database(&self) -> &ResolvedDatabaseSpecifier
Returns a fully-specified id of the database
sourcefn name(&self) -> &QualifiedSchemaName
fn name(&self) -> &QualifiedSchemaName
Returns a fully-specified name of the schema.
sourcefn id(&self) -> &SchemaSpecifier
fn id(&self) -> &SchemaSpecifier
Returns a stable ID for the schema.
sourcefn item_ids(&self) -> Box<dyn Iterator<Item = CatalogItemId> + '_>
fn item_ids(&self) -> Box<dyn Iterator<Item = CatalogItemId> + '_>
Returns the IDs of the items in the schema.
sourcefn privileges(&self) -> &PrivilegeMap
fn privileges(&self) -> &PrivilegeMap
Returns the privileges associated with the schema.