Skip to main content

Module reader

Module reader 

Source
Expand description

Reader for the event store.

The reader composes over the locked EventStore trait. It owns one backend instance, exposes range scans as a chunked iterator, single-seq lookups, secondary-index lookups, and manifest access. The backend the reader receives may be a still-open run (the writer’s backend) or a sealed run produced via crate::backend::RedbBackend::open_sealed.

Run iteration across a base directory lives on the redb backend itself (crate::backend::RedbBackend::list_runs) because it depends on the on-disk file layout; the in-memory backend has no analog and reads its single open run in place.

Structs§

EventStoreReader
Read-only handle over an EventStore backend.
RangeScan
Lazy iterator over a seq range, materialized in chunks.
SnapshotReplayPlan
Replay bounds derived from the latest cache snapshot anchor.

Constants§

DEFAULT_SCAN_CHUNK_SIZE
Default number of entries materialized per chunked scan_range call.