era127
era127
There is a c api function `duckdb_bind_varchar_length` which maybe could be used inside `duckdb_bind_internal(stmt::Stmt, i::Integer, val::AbstractString)` instead of the existing `duckdb_bind_varchar`. Alternatively you could define a new duckdb_bind_internal for SubString{String}...
I think the [306](https://github.com/duckdb/duckdb-rs/pull/306) update to the test case could be merged into your changes.
That query will need to be executed using the `duckdb_query` or `duckdb_query_arrow` c api functions. The rust client api `execute_batch` will use the `duckdb_query_arrow` c api function, but unfortunately `execute_batch`...
Try using `DuckDB.query()` instead of `DuckDB.execute()`. `DuckDB.query()` calls the `duckdb_query` C api function which doesn't have this issue. ``` DuckDB.query(connection, "IMPORT DATABASE '/tmp/testdb'") ```
Try the `vscalar-arrow` feature as well.
I do not believe there is a function in the C api to append an array or list, but it would require the value to be coverted to a data...
It is in the appender-arrow feature [here](https://github.com/duckdb/duckdb-rs/blob/main/crates/duckdb/src/appender/arrow.rs#L30).