SqkonDriverConfig

class SqkonDriverConfig(val journalMode: SqkonJournalMode = SqkonJournalMode.WAL, val sync: SqkonSync = SqkonSync.NORMAL, val readerConnections: Int = 4, val statementCacheSize: Int = 25, val busyTimeoutMillis: Long)(source)

Tunables for the native androidx.sqlite-backed driver. Defaults match the pre-3.0 behavior (WAL, NORMAL, 4 reader connections), with two intentional differences: every connection now opens with SQLITE_OPEN_FULLMUTEX on JVM too (previously implicit only on Android), and a non-zero busy_timeout (3000 ms) is applied for WAL-contention hardening (was SQLite's fail-immediately default of 0).

Constructors

Link copied to clipboard
constructor(journalMode: SqkonJournalMode = SqkonJournalMode.WAL, sync: SqkonSync = SqkonSync.NORMAL, readerConnections: Int = 4, statementCacheSize: Int = 25, busyTimeoutMillis: Long)

Properties

Link copied to clipboard

PRAGMA busy_timeout in milliseconds, applied to every connection. Standard WAL hardening: under WAL a writer can transiently hit SQLITE_BUSY during checkpoint, and a second driver/process on the same file fails BEGIN IMMEDIATE immediately without it. Set to 0 to use SQLite's default (fail immediately, no wait).

Link copied to clipboard
Link copied to clipboard

Reader connections in the pool (file-backed only; Memory uses a single connection).

Link copied to clipboard

Per-connection prepared-statement LRU size.

Link copied to clipboard