Doc issue? What is the proper way of using JDBC PreparedStatement with STRUCT and/or MAP?
Open
- Dominant language
- C++
- Stars
- 127
- Forks
- 80
- Avg merge
- 13h 49m
- Merged PRs (30d)
- 48
Description
I have looked into the code and the DuckDBConnection class has methods like createMap() and createStruct(). The DuckDBPreparedStatement.setObject() does not reveal anything either.
This is what I ended up with for Map:
```
CREATE TABLE "commit" ("commit_id" VARCHAR, "producer_name" VARCHAR, "topic_name" VARCHAR,
"commit_epoch_ns" BIGINT, "record_count" INTEGER, "max_offsets" MAP(VARCHAR, BIGINT));
insertstmt.setObject(fieldpos, conn.createMap("MAP(VARCHAR,BIGINT)", new HashMap<>()));
```
Would be good to add examples to the JDBC client documentation.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.