-
Notifications
You must be signed in to change notification settings - Fork 225
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
useCopy
doesn't support JSONB
or arrays
#446
Comments
Just to make sure, what are the steps that you followed to build the project? This works:
|
Ok, sorry I should have updated this... I have a difficult network situation and I recently migrated to nixos and am still just learning... It was an issue on my side getting to the international internet from inside the container. I can build it fine now! The Unless this is easily exposable from somewhere in the |
Hey @AntonOfTheWoods The useCopy option is quite new, and mostly implemented to speed up the demo I'm working on, I'm not surprised it doesn't work with all types yet. This first version uses CSV, but I'm considering implementing it using the Postgres binary copy format. We can then annotate all types quite easily with the appropriate Postgres types. Having said that your code above has prompted my thinking, we need to consider what the best implementation is 🤔 |
I used the Postgres 'format' function previously for this. Take a look at the live query extension, it formats the provided query using it in order to create the view. |
I am unable to build the project after trying for a couple of hours (wasm docker won't build with the scripts, at least on my machine) and it will require a few tests, but the following does what I need it to - it allows for arrays of simple types and
JSONB
. I spent far, far too long trying to getJSONB[]
to import but in the end abandoned it.JSONB
now probably has all the methods you might want that previously only had array versions, so maybe left as a challenge to the reader...I tried to create a nix flake for building the project but wasn't able to get wasm building using the scripts.
The text was updated successfully, but these errors were encountered: