Skip to main content

JOURNAL_MODE

Constant JOURNAL_MODE 

pub const JOURNAL_MODE: &str = "wal";
Available on crate features event-store or projection-store only.
Expand description

The journal mode every connection this crate opens runs under, as SQLite reports it back.

WAL, because readers do not block the writer — the property a store whose read path is a long replay wants most, and the one that makes two connections onto one file workable at all. The rollback journal (DELETE) is the alternative that lost: it serialises readers against the writer (ADR-0022 §11).

It is spelled lowercase because that is what PRAGMA journal_mode answers, and the point of the constant is to be comparable against the answer.