SQLite journal modes. More...
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. | |
SQLite journal modes.
Corresponds to the PRAGMA journal_mode setting.
Definition at line 36 of file JournalMode.java.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.