UNPKG

bknd

Version:

Lightweight Firebase/Supabase alternative built to run anywhere — incl. Next.js, React Router, Astro, Cloudflare, Bun, Node, AWS Lambda & more.

8 lines (7 loc) 452 B
import { type GenericSqliteConnection } from "../../.."; export type DoSqliteConnection = GenericSqliteConnection<DurableObjectState["storage"]["sql"]>; export type DurableObjecSql = DurableObjectState["storage"]["sql"]; export type DoConnectionConfig<DB extends DurableObjecSql> = DurableObjectState | { sql: DB; }; export declare function doSqlite<DB extends DurableObjecSql>(config: DoConnectionConfig<DB>): GenericSqliteConnection<SqlStorage>;