sqliteKv()
Create a typed KV tier over an optional Node SQLite backend.
Import
Section titled “Import”import { sqliteKv } from "@graphrefly/ts/storage/node";Signature
Section titled “Signature”function sqliteKv( path: string, opts: SqliteKvOptions<T> = {},): KvStorageTier<T> & { close(): void }Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
path | string | path value used by the helper. |
opts | SqliteKvOptions<T> | Options that configure the helper. |
Returns
Section titled “Returns”A KvStorageTier<T> & { close(): void } value.
Example
Section titled “Example”import { sqliteKv } from "@graphrefly/ts/storage/node";Source
Section titled “Source”packages/ts/src/storage/node.ts