@@ -72,6 +72,7 @@ data BuiltinType
7272 | Record
7373 | Void
7474 | UUID
75+ | JSON
7576 deriving (Eq, Ord, Enum, Bounded, Read, Show, Typeable)
7677
7778builtin2oid :: BuiltinType -> PQ.Oid
@@ -122,6 +123,7 @@ builtin2oid typ = PQ.Oid $ case typ of
122123 Record -> 2249
123124 Void -> 2278
124125 UUID -> 2950
126+ JSON -> 114
125127
126128oid2builtin :: PQ.Oid -> Maybe BuiltinType
127129oid2builtin (PQ.Oid x) = case x of
@@ -171,6 +173,7 @@ oid2builtin (PQ.Oid x) = case x of
171173 2249 -> Just Record
172174 2278 -> Just Void
173175 2950 -> Just UUID
176+ 114 -> Just JSON
174177 _ -> Nothing
175178
176179builtin2typname :: BuiltinType -> ByteString
@@ -221,6 +224,7 @@ builtin2typname typ = case typ of
221224 Record -> record
222225 Void -> void
223226 UUID -> uuid
227+ JSON -> json
224228
225229oid2typname :: PQ.Oid -> Maybe ByteString
226230oid2typname (PQ.Oid x) = case x of
@@ -270,6 +274,7 @@ oid2typname (PQ.Oid x) = case x of
270274 2249 -> Just record
271275 2278 -> Just void
272276 2950 -> Just uuid
277+ 114 -> Just json
273278 _ -> Nothing
274279
275280bool :: ByteString
@@ -409,3 +414,6 @@ void = "void"
409414
410415uuid :: ByteString
411416uuid = "uuid"
417+
418+json :: ByteString
419+json = "json"