tursodatabase/libsql-client-ts

Interactive transactions requires verbose API

开放

#254 创建于 2024年8月28日

 (1 条评论) (0 个反应) (0 位负责人)TypeScript (67 个派生)auto 404
developer experienceenhancementgood first issuehelp wanted

仓库指标

星标
 (566 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Interactive transactions require to use the verbose API:

await tx.execute({sql: "INSERT INTO users (id, name) VALUES (?, ?)", args: [3, "Charlie"]});
await tx.execute({sql: "INSERT INTO users (id, name) VALUES (?, ?)", args: [4, "Eve"]});

Let's add support for the simpler one:

await tx.execute("INSERT INTO users (id, name) VALUES (?, ?)", [3, "Charlie"]);
await tx.execute("INSERT INTO users (id, name) VALUES (?, ?)", [4, "Eve"]);

贡献者指南