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"]);