mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 10:11:10 +00:00
Merge pull request #138 from BinaryAlley/other/increase-sqlite-busy-timeout-to-30-seconds
Increases the SQLite busy timeout to 30 seconds
This commit is contained in:
1 file changed
+1
-1
@@ -93,7 +93,7 @@ public class Program
|
|||||||
SqliteConnection sqliteConnection = new(context.Database.GetDbConnection().ConnectionString);
|
SqliteConnection sqliteConnection = new(context.Database.GetDbConnection().ConnectionString);
|
||||||
sqliteConnection.Open();
|
sqliteConnection.Open();
|
||||||
using SqliteCommand sqliteCommand = sqliteConnection.CreateCommand();
|
using SqliteCommand sqliteCommand = sqliteConnection.CreateCommand();
|
||||||
sqliteCommand.CommandText = "PRAGMA journal_mode=WAL; PRAGMA busy_timeout=10000;";
|
sqliteCommand.CommandText = "PRAGMA journal_mode=WAL; PRAGMA busy_timeout=30000;";
|
||||||
sqliteCommand.ExecuteNonQuery();
|
sqliteCommand.ExecuteNonQuery();
|
||||||
sqliteConnection.Close();
|
sqliteConnection.Close();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user