Creates and attaches a session to the database. This method is a wrapper around sqlite3session_create() and sqlite3session_attach().
method
sqlite.DatabaseSync.createSession
The configuration options for the session.
A session handle.
Referenced types
interface CreateSessionOptions
- db?: string
Name of the database to track. This is useful when multiple databases have been added using
ATTACH DATABASE.
interface Session
Closes the session. If the session is already closed, does nothing.
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().@returnsBinary changeset that can be applied to other databases.
Closes the session. An exception is thrown if the database or the session is not open. This method is a wrapper around
sqlite3session_delete().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().@returnsBinary patchset that can be applied to other databases.