Skip to main content

Module db

Module db 

Source
Expand description

Main DAG database — coordinates ObjectStore, IdIndex, SortedIndexes, GraphStore.

Structs§

Db
ScanStatus
Replication readiness snapshot. scan_complete is the correctness gate: until the cold-scan finishes rebuilding the seq index, an old cursor passed to since() can return a PARTIAL page and look (wrongly) like “caught up”. A correctness-critical consumer MUST wait for scan_complete == true before trusting historical catch-up. indexed_seq_min/max report the currently resolvable seq range; tip_seq is the log head.
SinceBatch
One page of the changefeed returned by since(). The replication contract: apply nodes in ascending seq order, advance your cursor to to_seq, and keep paging while has_more is true; then attach to the live subscribe edge. head_seq tells the consumer how far the log currently extends (how far behind it is).

Constants§

DEFAULT_SINCE_LIMIT
Default cap for since() when the caller passes limit == 0. Bounds the engine primitive itself so a stale/offline consumer can never force an unbounded materialization — the safety lives in the core, not the HTTP layer.