tursodatabase / tursodatabase/libsql-client-ts

Interactive transactions requires verbose API

Open
#254 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

developer experience enhancement good first issue help wanted
Dominant language
TypeScript
Stars
576
Forks
69
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the transaction tx.execute API and locate the implementation and existing tests for its current object-form arguments. Add coverage for the string-and-args form shown in the issue, then verify that both forms continue to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
sqlite, typescript
Domain
api, databases
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.