Skip to main content

sqlite

Function sqlite 

Source
pub fn sqlite(pool: SqlitePool) -> SqlStore
Expand description

Runlight’s tables in a SQLite database, on one connection of the app’s pool, which the store holds for its statements in turn (an in-memory database is one per connection, and SQLite has one writer at a time anyway). The connection is put in WAL mode with a busy timeout of five seconds.