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.
UPGRADE_SEED ๐Ÿ”’
Seed used to generate the catalog upgrade shard ID.
UPGRADE_SHARD_NAME ๐Ÿ”’
Human readable catalog upgrade shard name.
_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.

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.
desc ๐Ÿ”’
Returns the schema of the Rows/SourceDatas stored in the persist shard backing the catalog.
fetch_catalog_upgrade_shard_version ๐Ÿ”’
Fetch the persist version of the catalog upgrade 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.