diff options
| author | JP Dillingham <jp@dillingham.me> | 2022-08-19 09:42:04 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-19 09:42:04 -0500 |
| commit | 036227ad2f4b99556e23d6a64d30f031510cd8c4 (patch) | |
| tree | 8ac58451b7e0b2c97d88c9bdd48171ce4927a78c /src/slskd/Core | |
| parent | f2b1461fa4ddf746752045ac098866c247f2e094 (diff) | |
| parent | 59c71426366964a17f131756281a5c7816422c8e (diff) | |
| download | slskd-036227ad2f4b99556e23d6a64d30f031510cd8c4.tar.gz | |
Merge pull request #604 from slskd/sqlite
Add SQLiteThreadingMode flag, explicitly check and configure SQLite threading config
Diffstat (limited to 'src/slskd/Core')
| -rw-r--r-- | src/slskd/Core/Options.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs index 3ce620c1..4ff785bb 100644 --- a/src/slskd/Core/Options.cs +++ b/src/slskd/Core/Options.cs @@ -312,6 +312,14 @@ namespace slskd [Description("log SQL queries generated by Entity Framework")] [RequiresRestart] public bool LogSQL { get; init; } = false; + + /// <summary> + /// Gets the SQLite threading mode; MULTITHREADED (2) or SERIALIZED (3). Default is MULTITHREADED. + /// </summary> + [Argument(default, "sqlite-threading-mode")] + [EnvironmentVariable("SQLITE_THREADING_MODE")] + [Description("sets the SQLite threading mode to MULTITHREADED (2) or SERIALIZED (3)")] + public int SQLiteThreadingMode { get; init; } = 3; } /// <summary> |
