Package dev.rafex.ether.database.sqlite.config
package dev.rafex.ether.database.sqlite.config
SQLite configuration and PRAGMA utilities.
This package provides classes for configuring SQLite database connections, including Write-Ahead Logging (WAL) support, synchronous modes, and other SQLite-specific optimizations.
Key Classes
SQLiteConfig- Configuration builderJournalMode- Journal mode enumSynchronousMode- Synchronous mode enumSQLitePragmas- PRAGMA application utility
Usage Example
SQLiteConfig config = SQLiteConfig.builder()
.journalMode(JournalMode.WAL)
.synchronousMode(SynchronousMode.NORMAL)
.foreignKeys(true)
.busyTimeout(5000)
.build();
try (Connection conn = DriverManager.getConnection("jdbc:sqlite:test.db")) {
SQLitePragmas.apply(conn, config);
// Use connection...
}
- See Also:
-
ClassDescriptionSQLite journal modes.Configuration for SQLite database connections.Builder for
SQLiteConfig.Utility to apply SQLite PRAGMA settings to a connection.SQLite synchronous modes.