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

statement.run() signature #98

Open
vibl opened this issue Jun 9, 2024 · 0 comments
Open

statement.run() signature #98

vibl opened this issue Jun 9, 2024 · 0 comments

Comments

@vibl
Copy link

vibl commented Jun 9, 2024

The statement.run() method seems to have an entirely different signature than stated in the doc.

Doc

https://duckdb.org/docs/api/nodejs/reference#statementrunsql-params-callback--void

Here the signature is similar to connection.run(), which makes sense.

Reality

db.prepare("INSERT INTO foo VALUES(?, ?, ?, ?)").run(

In reality, the values need to be spread as distinct arguments to the function (I checked that it is the case). This seems strange...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant