JPDev@programming.dev to Programmer Humor@programming.dev · 7 months agoJSON Query Languageprogramming.devimagemessage-square36fedilinkarrow-up1676arrow-down118
arrow-up1658arrow-down1imageJSON Query Languageprogramming.devJPDev@programming.dev to Programmer Humor@programming.dev · 7 months agomessage-square36fedilink
minus-squareShawiniganHandshake@sh.itjust.workslinkfedilinkarrow-up1·7 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.