API reference
node-sqlite
Import
Section titled “Import”import * as api from "@fungi.computer/watchdog/node-sqlite";Exports
Section titled “Exports”| Kind | Export | Description |
|---|---|---|
| type alias | NodeSqliteCursor | Materialized Node SQLite rows, including the exact-one native operation. |
| type alias | NodeSqliteOwner | Concrete Node adapter; generic Watchdog owners need only toArray(). |
| function | fromNodeSqlite() | Adapt a caller-owned Node SQLite database; the caller retains its lifetime. |
NodeSqliteCursortype alias
Section titled “NodeSqliteCursor”type NodeSqliteCursor = WatchdogSqliteCursor & Readonly<{ one: () => WatchdogSqliteRow; }>;Materialized Node SQLite rows, including the exact-one native operation.
NodeSqliteOwnertype alias
Section titled “NodeSqliteOwner”type NodeSqliteOwner = Omit<WatchdogSqliteOwner, "sql"> & Readonly<{ sql: Readonly<{ exec: (statement, ...bindings) => NodeSqliteCursor; }>; }>;Concrete Node adapter; generic Watchdog owners need only toArray().
fromNodeSqlite()function
Section titled “fromNodeSqlite()”function fromNodeSqlite(database): NodeSqliteOwner;Adapt a caller-owned Node SQLite database; the caller retains its lifetime.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
database |
DatabaseSync |