Crate spacetimedb_commitlog

Source

Re-exports§

pub use crate::commit::Commit;
pub use crate::commit::StoredCommit;
pub use crate::payload::Decoder;
pub use crate::payload::Encode;
pub use crate::segment::Transaction;
pub use crate::segment::DEFAULT_LOG_FORMAT_VERSION;

Modules§

commit
commitlog
error
payload
repo
segment

Structs§

Commitlog
The canonical commitlog, backed by on-disk log files.
Options
Commitlog options.
Varchar
An owned string with a max length of N, like the venerable VARCHAR.

Functions§

commits
Obtain an iterator which traverses the commitlog located at the root directory from the start, yielding StoredCommits.
commits_from
Obtain an iterator which traverses the commitlog located at the root directory starting from offset and yielding StoredCommits.
committed_meta
Extract the most recently written segment::Metadata from the commitlog in repo.
fold_transactions
Traverse the commitlog located at the root directory from the start and “fold” its transactions into the provided Decoder.
fold_transactions_from
Traverse the commitlog located at the root directory starting from offset and “fold” its transactions into the provided Decoder.
transactions
Obtain an iterator which traverses the commitlog located at the root directory from the start, yielding Transactions.
transactions_from
Obtain an iterator which traverses the commitlog located at the root directory starting from offset and yielding Transactions.