On this page

C

Session

History
M

session.changeset

History
session.changeset(): Uint8Array
Returns:Uint8Array
Binary changeset that can be applied to other databases.

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().

M

session.patchset

History
session.patchset(): Uint8Array
Returns:Uint8Array
Binary patchset that can be applied to other databases.

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().

session.close(): void

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

M

session[Symbol.dispose]

History
session[Symbol.dispose](): void

Closes the session. If the session is already closed, does nothing.