@@ -88,6 +88,7 @@ module Squeal.PostgreSQL.Expression
89 , charLength
89 , charLength
91 -- ** Json
92 -- ** Json
92 -- *** Json and Jsonb operators
93 -- *** Json and Jsonb operators
@@ -955,6 +956,19 @@ like
955 -> Expression schema from grouping params (nullity 'PGbool)
956 -> Expression schema from grouping params (nullity 'PGbool)
956like = unsafeBinaryOp "LIKE"
957like = unsafeBinaryOp "LIKE"
959+-- | The key word ILIKE can be used instead of LIKE to make the
960+-- match case-insensitive according to the active locale.
962+-- >>> printSQL $ "abc" `ilike` "a%"
963+-- (E'abc' ILIKE E'a%')
965+ :: Expression schema from grouping params (nullity 'PGtext)
967+ -> Expression schema from grouping params (nullity 'PGtext)
969+ -> Expression schema from grouping params (nullity 'PGbool)
970+ilike = unsafeBinaryOp "ILIKE"
958{-----------------------------------------
972{-----------------------------------------
959 -- json and jsonb support
973 -- json and jsonb support