@@ -89,7 +89,7 @@ module Squeal.PostgreSQL.Expression
90 , PGarrayOf
90 , PGarrayOf
91 , PGjsonKey
91 , PGjsonKey
92− , PGjson
92+ , PGjson_
@@ -108,6 +108,8 @@ module Squeal.PostgreSQL.Expression
108 , toJsonb
108 , toJsonb
109 , arrayToJson
109 , arrayToJson
110 , rowToJson
110 , rowToJson
111 -- ** Aggregation
113 -- ** Aggregation
112 , unsafeAggregate, unsafeAggregateDistinct
114 , unsafeAggregate, unsafeAggregateDistinct
113 , sum_, sumDistinct
115 , sum_, sumDistinct
@@ -1077,6 +1079,16 @@ rowToJson
1077 -> Expression schema relations grouping params (nullity 'PGjson)
1079 -> Expression schema relations grouping params (nullity 'PGjson)
1078rowToJson = unsafeFunction "row_to_json"
1080rowToJson = unsafeFunction "row_to_json"
1083+ :: Expression schema relations grouping params (nullity 'PGjson)
1084+ -> Expression schema relations grouping params (nullity 'PGtext)
1085+jsonObjectKeys = unsafeFunction "json_object_keys"
1088+ :: Expression schema relations grouping params (nullity 'PGjsonb)
1089+ -> Expression schema relations grouping params (nullity 'PGtext)
1090+jsonbObjectKeys = unsafeFunction "jsonb_object_keys"
1080-- TODO: jsonBuildArray, jsonbBuildArray, jsonObject, jsonbObject
1092-- TODO: jsonBuildArray, jsonbBuildArray, jsonObject, jsonbObject
1081-- probably something like
1093-- probably something like
1082-- :: NP (Expression s r g p) xs -> Expression s r g p ('NotNull 'PGjson[b])
1094-- :: NP (Expression s r g p) xs -> Expression s r g p ('NotNull 'PGjson[b])