Session

sealed external interface Session(source)

Since

v22.12.0

Functions

Link copied to clipboard
abstract fun changeset(): <Error class: unknown class><out <Error class: unknown class>>

Retrieves a changeset containing all changes since the changeset was created. Can be called multiple times. An exception is thrown if the database or the session is not open. This method is a wrapper around sqlite3session_changeset().

Link copied to clipboard
abstract fun close()

Closes the session. An exception is thrown if the database or the session is not open. This method is a wrapper around sqlite3session_delete().

Link copied to clipboard
abstract fun patchset(): <Error class: unknown class><out <Error class: unknown class>>

Similar to the method above, but generates a more compact patchset. See Changesets and Patchsets in the documentation of SQLite. An exception is thrown if the database or the session is not open. This method is a wrapper around sqlite3session_patchset().