WriteAheadLog

Exposes the Write-Ahead Log APIs of a database connection.

Functions

Link copied to clipboard
abstract fun autoCheckpoint(frameCount: Int)

Causes any database on the connection to automatically checkpoint after committing a transaction if there are frameCount or more frames in the write-ahead log file. Any WriteAheadLogHook previously passed to setHook is replaced.

Link copied to clipboard
abstract fun checkpoint(mode: SqliteCheckpointMode = SqliteCheckpointMode.PASSIVE, database: String? = null): WriteAheadLogCheckpointResult

Runs a checkpoint operation on database of the connection in the given mode.

Link copied to clipboard
abstract fun setHook(hook: WriteAheadLogHook?)

Sets the callback that is invoked each time data is committed to a database in wal mode.