Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DuckDB Struct parameter example #230

Open
jhgoodwin opened this issue Nov 17, 2024 · 3 comments
Open

DuckDB Struct parameter example #230

jhgoodwin opened this issue Nov 17, 2024 · 3 comments

Comments

@jhgoodwin
Copy link

Hi,

Tried to look through the unit tests, docs, and samples, but did not see (maybe I was blind) how to create a parameter for a struct. In my case, specifically, I have an array of struct for the column.

Looking at ClrToDuckDBConverter, it doesn't seem to support this style of conversion. Do you have advice?

If it's not possible, I could use a detail table, but I was experimenting to see if I could avoid the join.

@Giorgi
Copy link
Owner

Giorgi commented Nov 17, 2024

Binding Struct parameters isn't supported at the moment, and I can't say when/if it will be supported. If you are interested in it, you can PInvoke duckdb_create_struct_value function and I can add support for accepting arbitrary duckdb_value-s as a parameter value.

@jhgoodwin
Copy link
Author

Your offer is generous. I think for now, I will use the well understood path until my project is a bit further along. Thank you for your work and support.

@Giorgi
Copy link
Owner

Giorgi commented Nov 17, 2024

I'll leave this issue as open, in case others are interested in Struct parameter support.

@Giorgi Giorgi reopened this Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants