@@ -47,6 +47,7 @@ module Squeal.PostgreSQL.Expression
48 -- ** Collections
48 -- ** Collections
@@ -483,6 +484,11 @@ array
483array xs = UnsafeExpression $
484array xs = UnsafeExpression $
484 "ARRAY[" <> commaSeparated (renderSQL <$> xs) <> "]"
485 "ARRAY[" <> commaSeparated (renderSQL <$> xs) <> "]"
488+ :: Expression outer grp commons schemas params from (nullity ('PGvararray ty))
489+ -> Expression outer grp commons schemas params from (nullity 'PGint8)
490+cardinality = unsafeFunction "cardinality"
486-- | >>> printSQL $ array [null_, false, true] & index 2
492-- | >>> printSQL $ array [null_, false, true] & index 2
487-- (ARRAY[NULL, FALSE, TRUE])[2]
493-- (ARRAY[NULL, FALSE, TRUE])[2]