2
0

SynchronousMode.cs 973 B

123456789101112131415161718192021222324252627282930
  1. namespace Emby.Server.Implementations.Data;
  2. /// <summary>
  3. /// The disk synchronization mode, controls how aggressively SQLite will write data
  4. /// all the way out to physical storage.
  5. /// </summary>
  6. public enum SynchronousMode
  7. {
  8. /// <summary>
  9. /// SQLite continues without syncing as soon as it has handed data off to the operating system.
  10. /// </summary>
  11. Off = 0,
  12. /// <summary>
  13. /// SQLite database engine will still sync at the most critical moments.
  14. /// </summary>
  15. Normal = 1,
  16. /// <summary>
  17. /// SQLite database engine will use the xSync method of the VFS
  18. /// to ensure that all content is safely written to the disk surface prior to continuing.
  19. /// </summary>
  20. Full = 2,
  21. /// <summary>
  22. /// EXTRA synchronous is like FULL with the addition that the directory containing a rollback journal
  23. /// is synced after that journal is unlinked to commit a transaction in DELETE mode.
  24. /// </summary>
  25. Extra = 3
  26. }