mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-13 20:32:48 +00:00
sqlite: Change some pragmas
This commit is contained in:
@@ -30,6 +30,8 @@ impl SqliteStore {
|
||||
pub async fn create_db_pool(db_url: &str, migrate: bool) -> Result<Pool<Sqlite>, sqlx::Error> {
|
||||
let db = SqlitePool::connect_with(
|
||||
SqliteConnectOptions::new()
|
||||
.journal_mode(sqlx::sqlite::SqliteJournalMode::Wal)
|
||||
.synchronous(sqlx::sqlite::SqliteSynchronous::Normal)
|
||||
.filename(db_url)
|
||||
.create_if_missing(true),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user