JPDev@programming.dev to Programmer Humor@programming.dev · 4 months agoJSON Query Languageprogramming.devimagemessage-square36fedilinkarrow-up1674arrow-down118
arrow-up1656arrow-down1imageJSON Query Languageprogramming.devJPDev@programming.dev to Programmer Humor@programming.dev · 4 months agomessage-square36fedilink
minus-squareShawiniganHandshake@sh.itjust.workslinkfedilinkarrow-up1·4 months agoPostgres has JSON operators you can put into expressions, including WHERE clauses. You can write queries like: SELECT item_details->‘manufacturer’->‘location’ FROM inventory WHERE item_details->‘material’ = “concrete”; Storing data in JSON columns has other trade-offs, though.
Postgres has JSON operators you can put into expressions, including WHERE clauses. You can write queries like:
SELECT item_details->‘manufacturer’->‘location’ FROM inventory WHERE item_details->‘material’ = “concrete”;
Storing data in JSON columns has other trade-offs, though.