bitemyapp / esqueleto

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

Generate ARRAY[..] for PostgreSQL #330

Open lf- opened 2 years ago

lf- commented 2 years 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 2 years ago

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