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::RoleAuth;
- 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ยง
- debug
- Functionality for manually modifying and displaying the catalog contents. This is helpful for fixing a corrupt catalog.
- error ๐
- initialize
- metrics ๐
- Prometheus monitoring metrics.
- objects
- The current types used to represent catalog data stored on disk. These objects generally fall into two categories.
- persist ๐
- traits ๐
- transaction ๐
- upgrade ๐
- This module contains all the helpers and code paths for upgrading/migrating the Catalog.
Structsยง
- AuditLogIterator 
- An iterator that returns audit log events in reverse ID order.
- BootstrapArgs 
- Metrics
- StateUpdate 
- A single update to the catalog state.
- TestCatalog State Builder 
- A builder to help create an OpenableDurableCatalogStatefor tests.
- Transaction
- A Transactionbatches multiple catalog operations together and commits them atomically. An operation also logically groups multiple catalog updates together.
Enumsยง
- CatalogError 
- DurableCatalog Error 
- An error that can occur while interacting with a durable catalog.
- FenceError 
- An error that indicates the durable catalog has been fenced.
Constantsยง
- AUDIT_LOG_ ID_ ALLOC_ KEY 
- BUILTIN_MIGRATION_ SHARD_ KEY 
- CATALOG_CONTENT_ ๐VERSION_ KEY 
- CATALOG_VERSION 
- The current version of the Catalog. The current version of theCatalog.
- DATABASE_ID_ ALLOC_ KEY 
- EXPRESSION_CACHE_ SHARD_ KEY 
- MOCK_AUTHENTICATION_ NONCE_ KEY 
- OID_ALLOC_ KEY 
- SCHEMA_ID_ ALLOC_ KEY 
- STORAGE_USAGE_ ID_ ALLOC_ KEY 
- SYSTEM_CLUSTER_ ID_ ALLOC_ KEY 
- SYSTEM_ITEM_ ALLOC_ KEY 
- SYSTEM_REPLICA_ ID_ ALLOC_ KEY 
- USER_CLUSTER_ ID_ ALLOC_ KEY 
- USER_ITEM_ ALLOC_ KEY 
- USER_NETWORK_ POLICY_ ID_ ALLOC_ KEY 
- USER_REPLICA_ ID_ ALLOC_ KEY 
- USER_ROLE_ ID_ ALLOC_ KEY 
Traitsยง
- AuditLogIterator ๐Trait 
- DurableCatalog State 
- A read-write API for the durable catalog state.
- OpenableDurable Catalog State 
- An API for opening a durable catalog state.
- ReadOnly Durable Catalog State 
- A read only API for the durable catalog state.
Functionsยง
- persist_backed_ catalog_ state 
- Creates an openable durable catalog state implemented using persist.
- shard_id 
- Deterministically generate a shard ID for the given organization_idandseed.
- test_bootstrap_ args