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

Implement the json_array_elements method #372

Open
DorelBarbu opened this issue Dec 12, 2023 · 0 comments
Open

Implement the json_array_elements method #372

DorelBarbu opened this issue Dec 12, 2023 · 0 comments

Comments

@DorelBarbu
Copy link

Hi,

First of all, thank you for putting together such an amazing library.

We are using your library as a database for performing database interactions inside our unit testing and integration testing because it's so easy and convenient to set up. We are using Postgresql and TypeORM. We have come across an issue though: json_array_elements is not implemented.

I tried to implement it myself, but I couldn't understand it. In Postgresql, if you use this method in a query it produces rows as an output, by expanding the JSON array into a set of rows. I tried to use db.public.registerFunction but couldn't.

Is there any way you could give me a hint about how to implement this, please?

Thank you very much,
Dorel Barbu

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

1 participant