Skip to main content

Crate corium_transactor

Crate corium_transactor 

Source
Expand description

Embedded single-writer transaction pipeline and index publisher, plus the networked transactor process (lease, gRPC services, indexing job).

Modules§

backup
Offline, content-addressed database backup and restore.
lease
Write-lease records with CAS fencing (see docs/design/log-and-transactor.md).
metrics
Lightweight process metrics with Prometheus text exposition.
node
The transactor as a process: multi-database state, durable naming, lease acquisition/renewal, background indexing, and tx-report fan-out.
server
Tonic services exposing a TransactorNode over the network.

Structs§

DbRoot
Published durable index-root metadata, fenced by lease version (see docs/design/log-and-transactor.md).
EmbeddedTransactor
A serialized, in-process transactor. The log append is the commit point.
TxReport
Result delivered after a transaction is durable and visible.

Enums§

TransactError
Pipeline errors.

Functions§

db_root_name
Root-store key for a database’s published index root.
publish_root
Publishes root under the fencing rules described on EmbeddedTransactor::publish_indexes.