Ether Framework
Unified API docs for Ether modules
Loading...
Searching...
No Matches
dev.rafex.ether.database.sqlite.config.JournalMode Enum Reference

SQLite journal modes. More...

Collaboration diagram for dev.rafex.ether.database.sqlite.config.JournalMode:

Public Attributes

 DELETE
 Rollback journal mode (default in SQLite < 3.7.0).
 MEMORY
 Memory journal mode.
 OFF
 No journal mode.
 PERSIST
 Persistent journal mode.
 TRUNCATE
 Truncate journal mode.
 WAL
 Write-Ahead Logging mode.

Detailed Description

SQLite journal modes.

Corresponds to the PRAGMA journal_mode setting.

See also
PRAGMA journal_mode

Definition at line 36 of file JournalMode.java.

Member Data Documentation

◆ DELETE

dev.rafex.ether.database.sqlite.config.JournalMode.DELETE

Rollback journal mode (default in SQLite < 3.7.0).

Creates a separate rollback journal file (-journal) that is deleted after each transaction.

Definition at line 53 of file JournalMode.java.

◆ MEMORY

dev.rafex.ether.database.sqlite.config.JournalMode.MEMORY

Memory journal mode.

The journal is kept in memory, not on disk. Transactions are atomic but not durable across application crashes.

Definition at line 77 of file JournalMode.java.

◆ OFF

dev.rafex.ether.database.sqlite.config.JournalMode.OFF

No journal mode.

No rollback journal is maintained. Transactions may be rolled back on application crash, leaving the database in an inconsistent state. Not recommended for production use.

Definition at line 86 of file JournalMode.java.

◆ PERSIST

dev.rafex.ether.database.sqlite.config.JournalMode.PERSIST

Persistent journal mode.

The journal file is never deleted, only overwritten. Can be slightly faster than DELETE on filesystems where file creation is expensive.

Definition at line 69 of file JournalMode.java.

◆ TRUNCATE

dev.rafex.ether.database.sqlite.config.JournalMode.TRUNCATE

Truncate journal mode.

Similar to DELETE but truncates the journal file to zero bytes instead of deleting it, which can be faster on some filesystems.

Definition at line 61 of file JournalMode.java.

◆ WAL

dev.rafex.ether.database.sqlite.config.JournalMode.WAL

Write-Ahead Logging mode.

Allows concurrent reads and writes, with better performance for write-intensive workloads. The default and recommended mode for most applications.

Definition at line 45 of file JournalMode.java.


The documentation for this enum was generated from the following file:
  • ether-database-sqlite/ether-database-sqlite/src/main/java/dev/rafex/ether/database/sqlite/config/JournalMode.java