dotConnect for SQLite Documentation
Devart.Data.SQLite Namespace / JournalMode Enumeration

In This Topic
    JournalMode Enumeration
    In This Topic
    Determines the journal mode for database.
    Syntax
    'Declaration
     
    Public Enum JournalMode 
       Inherits System.Enum
       Implements System.IComparableSystem.IConvertibleSystem.IFormattable 
    Members
    MemberDescription
    DefaultSQLite default Journal Mode is used.
    DeleteIn the Delete mode, the rollback journal is deleted at the conclusion of each transaction.
    MemoryThe MEMORY journaling mode stores the rollback journal in volatile RAM. It may be used to reduce disk I/O but that decreases database safety and integrity. If the application using SQLite crashes in the middle of a transaction in this mode, the database file may become corrupt.
    OffIn this mode rollback journal is completely disabled. The ROLLBACK command does not work; it behaves in an undefined way. Don't use the ROLLBACK command in this mode.
    PersistIn the Persist mode rollback journal file is not deleted when the transaction is commited. Its first block filled with zeroes to prevent other connections rolling back from this journal. May optimize performance on platforms where deleting or truncating a file is much more expensive than overwriting the first block of a file with zeros.
    TruncateIn the Truncate mode rollback journal file is truncated instead of deleting when the transaction is commited. May be used for gaining better performance, because on many systems, truncating a file is much faster than deleting the file.
    WALIn the WAL mode, Write-Ahead Logging is used instead of the standard rollback journal. This means that when database data is updated, the original content is preserved in the database file, and the changes are appended into a separate WAL file and eventually are transferred to the database.
    Inheritance Hierarchy

    System.Object
       System.ValueType
          System.Enum
             Devart.Data.SQLite.JournalMode

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also