Skip to content

Commit

Permalink
Merge pull request #281 from HAYASAKA-Ryosuke/change_readme_sample_code
Browse files Browse the repository at this point in the history
Fixed sample code in README
  • Loading branch information
notrab authored Oct 29, 2024
2 parents d722d3c + 445b8e7 commit e1825ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/libsql-client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ export const turso = createClient({
syncInterval: 60000,
});

await client.batch(
await turso.batch(
[
"CREATE TABLE IF NOT EXISTS users (id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT)",
{
sql: "INSERT INTO users VALUES (?)",
sql: "INSERT INTO users(name) VALUES (?)",
args: ["Iku"],
},
],
Expand Down

0 comments on commit e1825ab

Please sign in to comment.