UNPKG

db0

Version:

Lightweight SQL Connector

16 lines (15 loc) 336 B
import { createClient } from "@libsql/client/http"; import libSqlCore from "./core.mjs"; export default function libSqlConnector(opts) { let _client; const getClient = () => { if (!_client) { _client = createClient(opts); } return _client; }; return libSqlCore({ name: "libsql-http", getClient }); }