Kamil::Persistence::WritePipeline
[FUNC-003] [TECH-003] Single-Writer FIFO Write Pipeline Serialized single-writer pipeline managing atomic disk persistence, decoupled parsing, and SQLite WAL index transactions.
Consumes write operations sequentially through a dedicated background worker fiber,
ensuring crash-resilient disk writes, zero database lock contention (SQLITE_BUSY),
and anti-echo sentinel integration.
Constructors
Instance methods
dispatch(operation : WriteOperation) : WriteResult
Dispatches a write operation to the serialized queue and synchronously awaits the result.
Performs a high-throughput startup batch scan, directly indexing documents into the store bypassing channel queue overhead.
queue
Sourceroot_path
Sourcesentinel
Sourcestart_worker(store : IndexStore = @store, sentinel : AntiEchoSentinel = @sentinel, root_path : Path | String = @root_path) : Nil
Spawns or updates the background worker fiber "kamil-write-worker". Idempotent: ensures only one worker fiber processes the queue.
store
Source