RE: EctoPgJson 0.1 release: Elixir/Ecto extension for Posgres JSON/JSONB operators

You are viewing a single comment's thread from:

EctoPgJson 0.1 release: Elixir/Ecto extension for Posgres JSON/JSONB operators

in utopian-io •  6 years ago 

Thanks for the review, @codingdefined.

How it is different than Ecto.Query.API, because someone can directly do fragment("?->>? ILIKE ?", p.map, "key_name", ^some_value) for JSON/JSONB?

Yep, that's exactly the point of this library. I've noticed that my codebase is full of repeated fragments for JSONB handling so I've decided to dry it out and extract the functionality to a dedicated package.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!