sql: enable virtual statement cache on the reader pool

A follow-up to 720135a915
This commit is contained in:
link2xt
2021-04-07 21:13:45 +03:00
committed by link2xt
parent 179a2a50e6
commit f76aaf3205

View File

@@ -112,7 +112,6 @@ PRAGMA temp_store=memory; -- Avoid SQLITE_IOERR_GETTEMPPATH errors on Android
.filename(dbfile.as_ref())
.read_only(readonly)
.busy_timeout(Duration::from_secs(100))
.statement_cache_capacity(0) // XXX workaround for https://github.com/launchbadge/sqlx/issues/1147
.synchronous(SqliteSynchronous::Normal);
PoolOptions::<Sqlite>::new()