Skip to main content

Module pragmas

Module pragmas 

Source
Expand description

SQLite pragma helpers applied on every connection. SQLite PRAGMA helpers applied at connection open and on each transaction.

Functionsยง

apply_connection_pragmas
apply_init_pragmas
ensure_wal_mode
Re-asserts PRAGMA journal_mode = WAL after operations that may revert it (notably refinery-driven migrations, which can open internal handles that reset the journal mode in some scenarios). Idempotent and cheap; emits tracing::warn! if WAL fails to engage so degraded behaviour is observable.