Skip to content

Commit 414d96c

Browse files
committed
add bit about type inference to README
1 parent 574d38b commit 414d96c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

api/pkgs/@duckdb/node-api/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ const prepared = await connection.prepare('select $1, $2, $3');
140140
prepared.bindVarchar(1, 'duck');
141141
prepared.bindInteger(2, 42);
142142
prepared.bindList(3, listValue([10, 11, 12]), LIST(INTEGER));
143+
// OR, with type inference: prepared.bindList(3, [10, 11, 12]);
143144
const result = await prepared.run();
144145
```
145146

0 commit comments

Comments
 (0)