pgo
pgo copied to clipboard
Add support for array columns
While working in gleam-lang/packages I noticed that gleam_pgo doesn't seem to support array columns in Postgres.
Good idea! Thanks
Array columns can be added easily, coercion is already working. I have a column as params int[] in postgres, and all I had to do (to trick pgo) was to put the value with dynamic.unsafe_coerce(dynamic.from([1, 2, 3])), and it's working! I think we could add array: fn (List(a)) -> Value in pgo module directly.
Excellent! Let's do it