duckdb-node icon indicating copy to clipboard operation
duckdb-node copied to clipboard

Feat: exposing `duckdb_prepared_statement_type`

Open azmy60 opened this issue 1 year ago • 0 comments

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!

azmy60 avatar Mar 18 '24 03:03 azmy60