bitemyapp / esqueleto

New home of Esqueleto, please file issues so we can get things caught up!
BSD 3-Clause "New" or "Revised" License
370 stars 107 forks source link

Generate ARRAY[..] for PostgreSQL #330

Open lf- opened 1 year ago

lf- commented 1 year ago

I would like to generate a value ARRAY[1, 2] in an esqueleto query.

There is mkTextArray in the internals of JSON.hs, but otherwise not really anything that I can find.

cc @parsonsmatt

lf- commented 1 year ago

hm, val [a, b, c], but that's for literals only (i think?). I would like to use it for columns