circuithub / rel8

Hey! Hey! Can u rel8?
https://rel8.readthedocs.io
Other
150 stars 38 forks source link

Support array operations #188

Open isovector opened 2 years ago

isovector commented 2 years ago

I'd like access to the <@ operator as described here https://www.postgresql.org/docs/current/functions-array.html

shane-circuithub commented 2 years ago

This probably isn't something we're going to get around to any time soon, but in the mean time you can do this:

(<@) :: Sql DBEq a => Expr [a] -> Expr [a] -> Expr Bool
(<@) = binaryOperator "<@"