Skip to main content

Module storage

Module storage 

Source
Expand description

SQLite store initialization with WAL and contention hardening.

Constants§

BUSY_TIMEOUT_MS
SQLite lock wait timeout in milliseconds.

Functions§

current_user_version
Read the current PRAGMA user_version from a connection. Returns 0 on a fresh DB. Thin re-export of crate::migrator::current_user_version kept here for callers that only depend on the storage layer.
open
Opens a file-backed SQLite connection with hardened pragmas.
open_in_memory
Opens an in-memory SQLite connection with hardened pragmas.