Force SQLite to multithreading mode (#5269)

Force SQLite to multithreading mode
This commit is contained in:
Dean Herbert 2019-07-11 22:53:18 +09:00 committed by GitHub
commit 9cbd17415c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -41,6 +41,9 @@ static OsuDbContext()
{
// required to initialise native SQLite libraries on some platforms.
SQLitePCL.Batteries_V2.Init();
// https://github.com/aspnet/EntityFrameworkCore/issues/9994#issuecomment-508588678
SQLitePCL.raw.sqlite3_config(2 /*SQLITE_CONFIG_MULTITHREAD*/);
}
/// <summary>