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

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.

Gets the schema map for the database matching database_spec.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Upcasts this ProgressEventTimestamp to Any. Read more

Returns the name of the concrete type of this object. Read more

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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