Skip to content

Commit

Permalink
add list binding example to README
Browse files Browse the repository at this point in the history
  • Loading branch information
jraymakers committed Jan 14, 2025
1 parent d525e71 commit 67eb792
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/pkgs/@duckdb/node-api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,10 @@ const result = await connection.run('from test_all_types()');
### Parameterize SQL

```ts
const prepared = await connection.prepare('select $1, $2');
const prepared = await connection.prepare('select $1, $2, $3');
prepared.bindVarchar(1, 'duck');
prepared.bindInteger(2, 42);
prepared.bindList(3, listValue([10, 11, 12]), LIST(INTEGER));
const result = await prepared.run();
```

Expand Down

0 comments on commit 67eb792

Please sign in to comment.