rel8 icon indicating copy to clipboard operation
rel8 copied to clipboard

Add new `Case` constraint which is more general than `Table Expr`

Open shane-circuithub opened this issue 3 years ago • 0 comments

The Case constraint is used for functions like bool, case_, maybeTable, nullable, all of which ultimately compile down to a PostgreSQL CASE statement. Case has two instances: an overlapping Table Expr a => Case a instance, and a Case b => Case (a -> b) instance, that allows expressions like maybeTable id (+) which would not have been possible for.

shane-circuithub avatar Oct 17 '22 11:10 shane-circuithub