pgo
pgo copied to clipboard
Adding a type for json and jsonb columns
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