Session
[<Interface>]
type Session =
static member Create (changeset: unit -> NonSharedUint8Array, patchset: unit -> NonSharedUint8Array, close: unit -> unit) : Session
abstract member changeset () : NonSharedUint8Array
abstract member close () : unit
abstract member patchset () : NonSharedUint8Array| Assembly | Xantham.Fable.Node |
| Attributes | [<Interface>] |
@since v22.12.0
Methods
static member Create (changeset: unit -> NonSharedUint8Array, patchset: unit -> NonSharedUint8Array, close: unit -> unit) : Sessionabstract member changeset () : NonSharedUint8Array
abstract member changeset () : NonSharedUint8ArrayRetrieves 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().
@since v22.12.0
Returns. Binary changeset that can be applied to other databases.
abstract member close () : unit
abstract member close () : unitCloses the session. An exception is thrown if the database or the session is not open. This method is a wrapper around sqlite3session_delete().
abstract member patchset () : NonSharedUint8Array
abstract member patchset () : NonSharedUint8ArraySimilar 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().
@since v22.12.0
Returns. Binary patchset that can be applied to other databases.