Skip to main content

sqlite_options

Function sqlite_options 

Source
pub fn sqlite_options() -> SqliteConnectOptions
Expand description

Default [SqliteConnectOptions] for SQLite databases in this workspace.

WAL journaling is the load-bearing choice: under the default rollback journal, any writer holds an exclusive lock that blocks readers on other connections, which produces spurious SQLITE_BUSY (“database is locked”) errors under concurrent access. WAL lets readers and the single writer proceed in parallel.

Callers add .filename(...) (or use :memory:) on top.