@@ -54,6 +54,7 @@ module Squeal.PostgreSQL.Expression
57 -- ** Functions
58 -- ** Functions
58 , unsafeBinaryOp
59 , unsafeBinaryOp
59 , unsafeUnaryOpL
60 , unsafeUnaryOpL
@@ -119,8 +120,6 @@ module Squeal.PostgreSQL.Expression
121 -- *** Jsonb operators
122 -- *** Jsonb operators
@@ -160,6 +159,15 @@ module Squeal.PostgreSQL.Expression
167+ , websearchToTSquery
163 -- ** Aggregation
171 -- ** Aggregation
164 , Aggregate (..)
172 , Aggregate (..)
165 , Distinction (..)
173 , Distinction (..)
@@ -222,15 +230,6 @@ module Squeal.PostgreSQL.Expression
222 , fixarray
230 , fixarray
223 , tsvector
231 , tsvector
224 , tsquery
232 , tsquery
230− , websearchToTSquery
234 -- * Re-export
233 -- * Re-export
236 , NP (..)
235 , NP (..)
@@ -1157,18 +1156,14 @@ infixl 8 .#>>
1158-- Additional jsonb operators
1157-- Additional jsonb operators
1160−-- | Does the left JSON value contain the right JSON path/value entries at the
1159+class PGSubset container where
1163− :: Operator (null 'PGjsonb) (null 'PGjsonb) ('Null 'PGbool)
1160+ (@>) :: Operator (null0 container) (null1 container) ('Null 'PGbool)
1165−(.@>) = unsafeBinaryOp "@>"
1161+ (@>) = unsafeBinaryOp "@>"
1167−-- | Are the left JSON path/value entries contained at the top level within the
1168−-- right JSON value?
1169−(.<@) :: Operator (null 'PGjsonb) (null 'PGjsonb) ('Null 'PGbool)
1162+ (<@) :: Operator (null0 container) (null1 container) ('Null 'PGbool)
1171−(.<@) = unsafeBinaryOp "<@"
1163+ (<@) = unsafeBinaryOp "<@"
1164+instance PGSubset 'PGjsonb
1165+instance PGSubset 'PGtsquery
1166+instance PGSubset ('PGvararray ty)
1173-- | Does the string exist as a top-level key within the JSON value?
1168-- | Does the string exist as a top-level key within the JSON value?
1174(.?) :: Operator (null 'PGjsonb) (null 'PGtext) ('Null 'PGbool)
1169(.?) :: Operator (null 'PGjsonb) (null 'PGtext) ('Null 'PGbool)