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

Can I query postgresql tables that have json columns in an easy way? #69

Open
mastoj opened this issue Oct 19, 2022 · 8 comments
Open

Comments

@mastoj
Copy link

mastoj commented Oct 19, 2022

I think the subject summarize the question quite well. If I have a table with a jsonb column, can I map that somehow?

@Dzoukr
Copy link
Owner

Dzoukr commented Oct 20, 2022

Hi @mastoj, currently it's not supported to have it directly as json type. I am afraid you'd have to do some additional string -> json mapping.

@Dzoukr
Copy link
Owner

Dzoukr commented Oct 20, 2022

Of course, if you would find a way, that could be a very handy feature ;)

@Dzoukr
Copy link
Owner

Dzoukr commented Nov 4, 2022

Hi @mastoj, just FYI, there is a new version in progress where you are more than welcome to add vendor-specific syntax and features.

@mackwic
Copy link

mackwic commented Nov 14, 2023

Hello, what is the status of this issue ?
It's not clear if v4 supports jsonb columns and how.

Thank you for your work

@Dzoukr
Copy link
Owner

Dzoukr commented Nov 16, 2023

Hi, there was no work on this yet, however, thanks to the separation between different providers on the syntax level, this can be added now (aka open to PR 😉)

@mackwic
Copy link

mackwic commented Nov 16, 2023

Great ! Would you give me broad directions on how to tackle this work ?

I would not know where to add the serialization and deserialization support.

@Dzoukr
Copy link
Owner

Dzoukr commented Nov 17, 2023

I think you can check how the flow of transformation from custom syntax to SQL works for other keywords - it's not actually hard. Start with extending the syntax in computation expressions. Also write some tests so you know how it should look like from developer's perspective.

@travis-leith
Copy link

@mackwic before you do any coding, would be good to understand in more detail what you are proposing. Maybe just tell us the signatures of the new functions you would expect.

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

4 participants