Module mz_catalog::durable
source · 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::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 🔒
- 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
. - Creates an openable durable catalog state implemented using persist.