Struct coord::catalog::CatalogState [−][src]
pub struct CatalogState {
by_name: BTreeMap<String, Database>,
by_id: BTreeMap<GlobalId, CatalogEntry>,
by_oid: HashMap<u32, GlobalId>,
enabled_indexes: HashMap<GlobalId, Vec<(GlobalId, Vec<MirScalarExpr>)>>,
ambient_schemas: BTreeMap<String, Schema>,
temporary_schemas: HashMap<u32, Schema>,
roles: HashMap<String, Role>,
}
Fields
by_name: BTreeMap<String, Database>
by_id: BTreeMap<GlobalId, CatalogEntry>
by_oid: HashMap<u32, GlobalId>
enabled_indexes: HashMap<GlobalId, Vec<(GlobalId, Vec<MirScalarExpr>)>>
Contains only enabled indexes from objects in the catalog; does not contain indexes disabled by e.g. the disable_user_indexes flag.
ambient_schemas: BTreeMap<String, Schema>
temporary_schemas: HashMap<u32, Schema>
roles: HashMap<String, Role>
Implementations
pub(super) fn pack_schema_update(
&self,
database_spec: &DatabaseSpecifier,
schema_name: &str,
diff: Diff
) -> BuiltinTableUpdate
pub(super) fn pack_item_update(
&self,
id: GlobalId,
diff: Diff
) -> Vec<BuiltinTableUpdate>ⓘ
fn pack_table_update(
&self,
id: GlobalId,
oid: u32,
schema_id: i64,
name: &str,
table: &Table,
diff: Diff
) -> Vec<BuiltinTableUpdate>ⓘ
fn pack_source_update(
&self,
id: GlobalId,
oid: u32,
schema_id: i64,
name: &str,
source: &Source,
diff: Diff
) -> Vec<BuiltinTableUpdate>ⓘ
fn pack_view_update(
&self,
id: GlobalId,
oid: u32,
schema_id: i64,
name: &str,
diff: Diff
) -> Vec<BuiltinTableUpdate>ⓘ
fn pack_sink_update(
&self,
id: GlobalId,
oid: u32,
schema_id: i64,
name: &str,
sink: &Sink,
diff: Diff
) -> Vec<BuiltinTableUpdate>ⓘ
fn pack_index_update(
&self,
id: GlobalId,
oid: u32,
name: &str,
index: &Index,
diff: Diff
) -> Vec<BuiltinTableUpdate>ⓘ
fn pack_type_update(
&self,
id: GlobalId,
oid: u32,
schema_id: i64,
name: &str,
typ: &Type,
diff: Diff
) -> Vec<BuiltinTableUpdate>ⓘ
Encapsulates the logic for creating a source description for a source or table in the catalog.
Finds the nearest indexes that can satisfy the views or sources whose
identifiers are listed in ids
.
Returns the identifiers of all discovered indexes, and the identifiers of
the discovered unmaterialized sources required to satisfy ids. The returned list
of indexes is incomplete iff ids
depends on at least one unmaterialized source.
Computes the IDs of any indexes that transitively depend on this catalog entry.
fn get_schema(
&self,
database_spec: &DatabaseSpecifier,
schema_name: &str,
conn_id: u32
) -> Option<&Schema>
fn get_schema(
&self,
database_spec: &DatabaseSpecifier,
schema_name: &str,
conn_id: u32
) -> Option<&Schema>
Gets the schema map for the database matching database_spec
.
fn get_schema_mut(
&mut self,
database_spec: &DatabaseSpecifier,
schema_name: &str,
conn_id: u32
) -> Option<&mut Schema>
fn get_schema_mut(
&mut self,
database_spec: &DatabaseSpecifier,
schema_name: &str,
conn_id: u32
) -> Option<&mut Schema>
Like get_schemas
, but returns a mut
reference.
Reports whether the item identified by id
is considered volatile.
None
indicates that the volatility of id
is unknown.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for CatalogState
impl Send for CatalogState
impl Sync for CatalogState
impl Unpin for CatalogState
impl !UnwindSafe for CatalogState
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more