Structsยง
- Catalog
State ๐Inner - Applies updates for an opened catalog.
- Persist
Handle ๐ - A handle for interacting with the persist catalog shard.
- Unopened
Catalog ๐State Inner - Applies updates for an unopened catalog.
Enumsยง
- Compare
AndAppend ๐Error - An error that can occur while executing
PersistHandle::compare_and_append
. - Fenceable
Token ๐ - 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ยง
- Apply
Update ๐
Functionsยง
- antichain_
to_ ๐timestamp - Convert an
Antichain<Timestamp>
to aTimestamp
. - as_of ๐
- Generates a timestamp for reading from
read_handle
that is as fresh as possible, givenupper
. - desc ๐
- Returns the schema of the
Row
s/SourceData
s 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
andseed
. - 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ยง
- Persist
Catalog ๐State - 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.
- Unopened
Persist ๐Catalog State - 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. TheUnopenedPersistCatalogState
is responsible for opening the catalog, seeOpenableDurableCatalogState::open
for more details.