createSqliteStorage
function createSqliteStorage(options?): SqliteKvStorage;Defined in: src/storage/sqlite.ts:115
Create a SQLite-backed storage. Requires the Bun runtime once used.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
options? |
SqliteStorageOptions |
Returns
Section titled “Returns”Example
Section titled “Example”import { createSqliteStorage } from "@xtandard/kit/storage/sqlite";
const storage = createSqliteStorage({ path: "./data.sqlite", table: "xtandard_kv" });