sqliteBackend()
Optional Node SQLite byte backend (D106 passive storage).
Uses node:sqlite when the current Node runtime provides it; otherwise throws a clear
runtime error at construction time. The caller owns close().
Import
Section titled “Import”import { sqliteBackend } from "@graphrefly/ts/storage/node";Signature
Section titled “Signature”function sqliteBackend( path: string, opts: SqliteBackendOptions = {},): ClosableStorageBackendParameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
path | string | path value used by the helper. |
opts | SqliteBackendOptions | Options that configure the helper. |
Returns
Section titled “Returns”A ClosableStorageBackend value.
Example
Section titled “Example”import { sqliteBackend } from "@graphrefly/ts/storage/node";Source
Section titled “Source”packages/ts/src/storage/node.ts