Feat: exposing `duckdb_prepared_statement_type`
- Dominant language
- C++
- Stars
- 91
- Forks
- 36
- PR merge metrics
- No merged PRs in 30d
Description
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](https://github.com/WiseLibs/better-sqlite3/blob/60763a0742690c8bae1db43d838f418cfc83b656/docs/api.md#properties-1) 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!
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.