Snapshot

An immutable, point-in-time snapshot of the state of a WAL mode database, returned by ksqlite.kapi.connection.DatabaseConnection.createSnapshot and consumed by ksqlite.kapi.connection.DatabaseConnection.openSnapshot.

Unless documented otherwise, every member throws IllegalStateException once this snapshot is closed.

Functions

Link copied to clipboard
abstract override fun close()

Destroys this snapshot. Calling this again on an already closed snapshot has no effect.

Link copied to clipboard
abstract operator override fun compareTo(other: Snapshot): Int

Compares the age of this snapshot to other. A negative number means this snapshot is older than other, zero that they refer to the same point in time, and a positive number that this snapshot is newer. Comparing snapshots taken from different databases gives an unspecified result.