mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 10:30:38 +00:00
parent
74c2604dc8
commit
e11e093020
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ public abstract class Database implements AutoCloseable {
|
|||
sqliteConfig.setTransactionMode(SQLiteConfig.TransactionMode.IMMEDIATE);
|
||||
|
||||
HikariConfig config = new HikariConfig();
|
||||
config.setJdbcUrl("jdbc:sqlite:" + databaseFile + "?foreign_keys=ON");
|
||||
config.setJdbcUrl("jdbc:sqlite:" + databaseFile + "?foreign_keys=ON&journal_mode=wal");
|
||||
config.setDataSourceProperties(sqliteConfig.toProperties());
|
||||
config.setMinimumIdle(1);
|
||||
return new HikariDataSource(config);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue