import { BoxDB } from "@boxdb/client";
import { db0Connector } from "@boxdb/db0-adapter";
import { createDatabase } from "db0";
await using client = await BoxDB.open("data.db");
const db = createDatabase(db0Connector(client));
await db.exec("CREATE TABLE IF NOT EXISTS users(name TEXT)");
await db.sql`INSERT INTO users VALUES(${"Ada"})`;
const result = await db.sql`SELECT * FROM users`;
console.log(result.rows);
prepare 创建同步描述符; all, (中文(简体) ), get 财务报告和审定财务报表 run 执行
与当地工人同步 每个 bind 返回独立的
装订。 写入结果包括 success 加宽 changes 财务报告和审定财务报表 lastInsertRowid。 。 。 .
整数行细胞也仍然是比特.
(单位:千美元) undefined 绑定为 SQL NULL .