|
@@ -13,7 +13,7 @@ use std::collections::HashMap;
|
|
|
mod batch;
|
|
|
|
|
|
pub use batch::Batch;
|
|
|
-pub use sqlx::sqlite::{SqliteConnectOptions, SqlitePoolOptions};
|
|
|
+pub use sqlx::sqlite::{SqliteConnectOptions, SqliteJournalMode, SqlitePoolOptions};
|
|
|
|
|
|
use super::ReceivedPaymentStatus;
|
|
|
|
|
@@ -382,6 +382,7 @@ mod test {
|
|
|
let settings = path
|
|
|
.parse::<SqliteConnectOptions>()
|
|
|
.expect("valid settings")
|
|
|
+ .journal_mode(sqlx::sqlite::SqliteJournalMode::Wal)
|
|
|
.create_if_missing(true);
|
|
|
|
|
|
let pool = SqlitePoolOptions::new()
|