pgo icon indicating copy to clipboard operation
pgo copied to clipboard

Adding a type for json and jsonb columns

Open CrowdHailer opened this issue 3 years ago • 7 comments

I need to add a json function for inserting json to the database.

I'm assuming the best thing to do is to add a function like pgo.int

e.g.

let args = [pgo.int(value), pgo.json(data)]

I would need to add a dependency on gleam_json to get a JSON type. is this acceptable? I guess the other option would be to work with dynamic

CrowdHailer avatar Dec 18 '20 09:12 CrowdHailer