Skip to content

Using read_json (and other DuckDB extensions) #129

Answered by jheer
rndmcnlly asked this question in Q&A
Discussion options

You must be logged in to vote

You should be able to call the coordinator exec method to run one or more queries that do not return table values.

I have not tested with the wasm connector, but one example might be:

await coordinator().exec(`INSTALL json; LOAD json;`);

We already perform similar calls internally in the node JS DuckDB server. I’m just unsure at the moment of what is supported (versus built-in) within DuckDB-WASM.

For JSON loading, the built-in methods for bulk loading should almost certainly be preferred for any non-trivially sized datasets.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@rndmcnlly
Comment options

@rndmcnlly
Comment options

@rndmcnlly
Comment options

Answer selected by jheer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants