Skip to main content

Module persist

Module persist 

Source

StructsΒ§

CatalogStateInner πŸ”’
Applies updates for an opened catalog.
PersistHandle πŸ”’
A handle for interacting with the persist catalog shard.
UnopenedCatalogStateInner πŸ”’
Applies updates for an unopened catalog.

EnumsΒ§

CompareAndAppendError πŸ”’
An error that can occur while executing PersistHandle::compare_and_append.
FenceableToken πŸ”’
Enum representing the fenced state of the catalog.
Mode πŸ”’
Durable catalog mode that dictates the effect of mutable operations.

ConstantsΒ§

CATALOG_SEED πŸ”’
Seed used to generate the persist shard ID for the catalog.
CATALOG_SHARD_NAME πŸ”’
Human readable catalog shard name.
MIN_EPOCH πŸ”’
The minimum value of an epoch.
_BUILTIN_MIGRATION_SEED
Legacy seed used to generate the persist shard ID for builtin table migrations. DO NOT REUSE.
_EXPRESSION_CACHE_SEED
Legacy seed used to generate the persist shard ID for the expression cache. DO NOT REUSE.
_UPGRADE_SEED πŸ”’
Legacy seed used to generate the persist shard ID for the upgrade shard. DO NOT REUSE.

StaticsΒ§

CATALOG_CRITICAL_SINCE πŸ”’
CriticalReaderId for the catalog shard’s own since hold, separate from PersistClient::CONTROLLER_CRITICAL_SINCE.

TraitsΒ§

ApplyUpdate πŸ”’

FunctionsΒ§

antichain_to_timestamp πŸ”’
Convert an Antichain<Timestamp> to a Timestamp.
as_of πŸ”’
Generates a timestamp for reading from read_handle that is as fresh as possible, given upper.
fetch_catalog_shard_version πŸ”’
Fetch the persist version of the catalog shard, if one exists. A version will not exist if we are creating a brand-new environment.
shard_id
Deterministically generate a shard ID for the given organization_id and seed.
snapshot_binary πŸ”’
Generates an iterator of StateUpdate that contain all updates to the catalog state up to, and including, as_of.
snapshot_binary_inner πŸ”’
Generates an iterator of StateUpdate that contain all updates to the catalog state up to, and including, as_of.

Type AliasesΒ§

PersistCatalogState πŸ”’
A durable store of the catalog state using Persist as an implementation. The durable store can serve any catalog data and transactionally modify catalog data.
Timestamp πŸ”’
New-type used to represent timestamps in persist.
UnopenedPersistCatalogState πŸ”’
A Handle to an unopened catalog stored in persist. The unopened catalog can serve Config data, Setting data, or the current epoch. All other catalog data may be un-migrated and should not be read until the catalog has been opened. The UnopenedPersistCatalogState is responsible for opening the catalog, see OpenableDurableCatalogState::open for more details.