session.changeset(): Uint8Array
Uint8ArrayRetrieves 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().
session.patchset(): Uint8Array
Uint8ArraySimilar 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. An
ERR_INVALID_STATE error is thrown if the method is called from a callback that
SQLite invoked, such as an authorizer callback, a user-defined function, or a
'sqlite.db.query' subscriber, because SQLite may still be using the session.
This method is a wrapper around sqlite3session_delete().
session[Symbol.dispose](): void
Closes the session. If the session is already closed, then this is a no-op. An
ERR_INVALID_STATE error is thrown if the session is currently generating
a changeset or patchset, or if the method is called from a callback that SQLite
invoked, under the same conditions as session.close().