Skip to content
PACKAGES

sqliteKv()

Create a typed KV tier over an optional Node SQLite backend.

import { sqliteKv } from "@graphrefly/ts/storage/node";
function sqliteKv(
path: string,
opts: SqliteKvOptions<T> = {},
): KvStorageTier<T> & { close(): void }
ParameterTypeDescription
pathstringpath value used by the helper.
optsSqliteKvOptions<T>Options that configure the helper.

A KvStorageTier<T> & { close(): void } value.

import { sqliteKv } from "@graphrefly/ts/storage/node";

packages/ts/src/storage/node.ts