Skip to main content

Crate corium_store

Crate corium_store 

Source
Expand description

Content-addressed blob and fenced root stores for immutable index segments.

Enable the turso Cargo feature to use [TursoBlobStore].

Structs§

BlobId
A content identifier for immutable blobs.
DbRoot
Published durable index-root metadata carrying the write lease (see docs/design/log-and-transactor.md).
FsStore
Filesystem-backed content-addressed blob and fenced root store.
GcReport
Result counters from a mark-and-sweep garbage collection pass.
MemoryStore
In-memory blob and root store for tests and embedded use.
SegmentCache
Small read-through segment cache keyed by blob id.

Enums§

StoreError
Errors raised by store implementations.

Constants§

FORMAT_VERSION
Storage format written by this release.

Traits§

BlobStore
Immutable content-addressed blob storage.
RootStore
Named root pointer storage with compare-and-swap fencing.

Functions§

db_root_name
Root-store key for a database’s published index root.
mark_and_sweep
Marks blobs reachable from live_roots and deletes every unmarked blob.
mark_and_sweep_retained
Marks reachable blobs and deletes only unreachable blobs older than retention relative to now.

Type Aliases§

BlobIdStream
Asynchronous stream of blob identifiers produced by BlobStore::list.