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 = GlobalId> + '_>;
    fn owner_id(&self) -> RoleId;
    fn privileges(&self) -> &PrivilegeMap;
}
Expand description

A schema in a SessionCatalog.

Required Methods§

source

fn database(&self) -> &ResolvedDatabaseSpecifier

Returns a fully-specified id of the database

source

fn name(&self) -> &QualifiedSchemaName

Returns a fully-specified name of the schema.

source

fn id(&self) -> &SchemaSpecifier

Returns a stable ID for the schema.

source

fn has_items(&self) -> bool

Lists the CatalogItems for the schema.

source

fn item_ids(&self) -> Box<dyn Iterator<Item = GlobalId> + '_>

Returns the IDs of the items in the schema.

source

fn owner_id(&self) -> RoleId

Returns the ID of the owning role.

source

fn privileges(&self) -> &PrivilegeMap

Returns the privileges associated with the schema.

Implementors§