Session class abstract interface

A Session tracks database changes made by a Conn. It is used to build changesets.

Equivalent to the sqlite3_session* C object.

Constructors

Session.new(CommonDatabase database, {String name = 'main'})
factory

Properties

enabled bool
IsEnabled queries if the session is currently enabled. https://www.sqlite.org/session/sqlite3session_enable.html
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isEmpty bool
https://sqlite.org/session/sqlite3session_isempty.html
no setter
isIndirect bool
https://sqlite.org/session/sqlite3session_indirect.html
getter/setter pair
isNotEmpty bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

attach([String? table]) → void
https://www.sqlite.org/session/sqlite3session_attach.html
changeset() Changeset
Changeset generates a changeset from a session.
delete() → void
Delete deletes a Session object.
diff(String fromDb, String table) → void
Diff appends the difference between two tables (srcDB and the session DB) to the session. The two tables must have the same name and schema. https://www.sqlite.org/session/sqlite3session_diff.html
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
patchset() Patchset
Patchset generates a patchset from a session.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited