duckdb-node
duckdb-node copied to clipboard
Feat: exposing `duckdb_prepared_statement_type`
Hello there!
So, I'm wondering if there are any plans to expose duckdb_prepared_statement_type which is exposed in C API?
https://duckdb.org/docs/api/c/prepared#duckdb_prepared_statement_type
It's similar to what's done in better-sqlite3 with the reader property, which indicates whether a statement would return data or not.
We have a case where we need to decide whether we execute a prepared statement with .run or .all, and having something like duckdb_prepared_statement_type or reader would be super helpful!