Skip to main content

Module durable

Module durable 

Source
Expand description

This crate is responsible for durably storing and modifying the catalog contents.

Re-exports§

pub use crate::durable::objects::Snapshot;
pub use crate::durable::objects::BurstState;
pub use crate::durable::objects::Cluster;
pub use crate::durable::objects::ClusterConfig;
pub use crate::durable::objects::ClusterReplica;
pub use crate::durable::objects::ClusterSystemConfiguration;
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::ReconfigurationState;
pub use crate::durable::objects::ReconfigurationTarget;
pub use crate::durable::objects::ReplicaConfig;
pub use crate::durable::objects::ReplicaLocation;
pub use crate::durable::objects::ReplicaSystemConfiguration;
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.
initialize
objects
The current types used to represent catalog data stored on disk. These objects generally fall into two categories.

Structs§

BootstrapArgs
Metrics
StateUpdate
A single update to the catalog state.
TestCatalogStateBuilder
A builder to help create an OpenableDurableCatalogState for tests.
Transaction
A Transaction batches multiple catalog operations together and commits them atomically. An operation also logically groups multiple catalog updates together.

Enums§

CatalogError
DurableCatalogError
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_VERSION
The current version of the Catalog. The current version of the Catalog.
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§

DurableCatalogState
A read-write API for the durable catalog state.
OpenableDurableCatalogState
An API for opening a durable catalog state.
ReadOnlyDurableCatalogState
A read only API for the durable catalog state.

Functions§

persist_backed_catalog_state
Creates an openable durable catalog state implemented using persist.
persist_desc
Returns the schema of the Rows/SourceDatas stored in the persist shard backing the catalog.
shard_id
Deterministically generate a shard ID for the given organization_id and seed.
test_bootstrap_args

Type Aliases§

Epoch