Trait mz_sql::catalog::CatalogRole

source ·
pub trait CatalogRole {
    // Required methods
    fn name(&self) -> &str;
    fn id(&self) -> RoleId;
    fn membership(&self) -> &BTreeMap<RoleId, RoleId>;
    fn attributes(&self) -> &RoleAttributes;
    fn vars(&self) -> &BTreeMap<String, OwnedVarInput>;
}
Expand description

A role in a SessionCatalog.

Required Methods§

source

fn name(&self) -> &str

Returns a fully-specified name of the role.

source

fn id(&self) -> RoleId

Returns a stable ID for the role.

source

fn membership(&self) -> &BTreeMap<RoleId, RoleId>

Returns all role IDs that this role is an immediate a member of, and the grantor of that membership.

Key is the role that some role is a member of, value is the grantor role ID.

source

fn attributes(&self) -> &RoleAttributes

Returns the attributes associated with this role.

source

fn vars(&self) -> &BTreeMap<String, OwnedVarInput>

Returns all variables that this role has a default value stored for.

Implementors§