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