Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interactive transactions requires verbose API #254

Open
penberg opened this issue Aug 28, 2024 · 1 comment
Open

Interactive transactions requires verbose API #254

penberg opened this issue Aug 28, 2024 · 1 comment
Labels
developer experience enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@penberg
Copy link
Contributor

penberg commented Aug 28, 2024

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"]);
@penberg penberg added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed developer experience labels Aug 28, 2024
@penberg
Copy link
Contributor Author

penberg commented Aug 28, 2024

CC @notrab @giovannibenussi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
developer experience enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant