Expand description
This crate is responsible for durably storing and modifying the catalog contents.
Re-exportsยง
pub use crate::durable::objects::Cluster;
pub use crate::durable::objects::ClusterConfig;
pub use crate::durable::objects::ClusterReplica;
pub use crate::durable::objects::ClusterVariant;
pub use crate::durable::objects::ClusterVariantManaged;
pub use crate::durable::objects::Comment;
pub use crate::durable::objects::Database;
pub use crate::durable::objects::DefaultPrivilege;
pub use crate::durable::objects::IntrospectionSourceIndex;
pub use crate::durable::objects::Item;
pub use crate::durable::objects::NetworkPolicy;
pub use crate::durable::objects::ReplicaConfig;
pub use crate::durable::objects::ReplicaLocation;
pub use crate::durable::objects::Role;
pub use crate::durable::objects::Schema;
pub use crate::durable::objects::SourceReference;
pub use crate::durable::objects::SourceReferences;
pub use crate::durable::objects::StorageCollectionMetadata;
pub use crate::durable::objects::SystemConfiguration;
pub use crate::durable::objects::SystemObjectDescription;
pub use crate::durable::objects::SystemObjectMapping;
pub use crate::durable::objects::UnfinalizedShard;
Modulesยง
- Functionality for manually modifying and displaying the catalog contents. This is helpful for fixing a corrupt catalog.
- error ๐
- metrics ๐Prometheus monitoring metrics.
- The current types used to represent catalog data stored on disk. These objects generally fall into two categories.
- persist ๐
- transaction ๐
- upgrade ๐This module contains all the helpers and code paths for upgrading/migrating the
Catalog
.
Structsยง
- A single update to the catalog state.
- A builder to help create an
OpenableDurableCatalogState
for tests. - A
Transaction
batches multiple catalog operations together and commits them atomically. An operation also logically groups multiple catalog updates together.
Enumsยง
- An error that can occur while interacting with a durable catalog.
- An error that indicates the durable catalog has been fenced.
Constantsยง
- The current version of the
Catalog
.
Traitsยง
- A read-write API for the durable catalog state.
- An API for opening a durable catalog state.
- A read only API for the durable catalog state.
Functionsยง
- Deterministically generate a builtin table migration shard ID for the given
organization_id
. - Deterministically generate an expression cache shard ID for the given
organization_id
. - Creates an openable durable catalog state implemented using persist.