aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Data/TempStoreMode.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2021-10-03 17:13:39 +0200
committerGitHub <noreply@github.com>2021-10-03 17:13:39 +0200
commit6a575b3f77d2d1a304bb8b80e09d2b26b50bba5d (patch)
treeafe75e3fc44f80c862e981268deaf771199d239a /Emby.Server.Implementations/Data/TempStoreMode.cs
parentc60428f869fec7cc0c407ec58a4a111e2908a63d (diff)
parent21007aec2038b88734ae19287081bcb1b04f6300 (diff)
Merge pull request #6648 from barronpm/implementations-warn1
Diffstat (limited to 'Emby.Server.Implementations/Data/TempStoreMode.cs')
-rw-r--r--Emby.Server.Implementations/Data/TempStoreMode.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/Data/TempStoreMode.cs b/Emby.Server.Implementations/Data/TempStoreMode.cs
new file mode 100644
index 000000000..d2427ce47
--- /dev/null
+++ b/Emby.Server.Implementations/Data/TempStoreMode.cs
@@ -0,0 +1,23 @@
+namespace Emby.Server.Implementations.Data;
+
+/// <summary>
+/// Storage mode used by temporary database files.
+/// </summary>
+public enum TempStoreMode
+{
+ /// <summary>
+ /// The compile-time C preprocessor macro SQLITE_TEMP_STORE
+ /// is used to determine where temporary tables and indices are stored.
+ /// </summary>
+ Default = 0,
+
+ /// <summary>
+ /// Temporary tables and indices are stored in a file.
+ /// </summary>
+ File = 1,
+
+ /// <summary>
+ /// Temporary tables and indices are kept in as if they were pure in-memory databases memory.
+ /// </summary>
+ Memory = 2
+}