@@ -72,6 +72,7 @@ data BuiltinType
75 deriving (Eq, Ord, Enum, Bounded, Read, Show, Typeable)
76 deriving (Eq, Ord, Enum, Bounded, Read, Show, Typeable)
77builtin2oid :: BuiltinType -> PQ.Oid
78builtin2oid :: BuiltinType -> PQ.Oid
@@ -122,6 +123,7 @@ builtin2oid typ = PQ.Oid $ case typ of
122 Record -> 2249
123 Record -> 2249
123 Void -> 2278
124 Void -> 2278
124 UUID -> 2950
125 UUID -> 2950
126oid2builtin :: PQ.Oid -> Maybe BuiltinType
128oid2builtin :: PQ.Oid -> Maybe BuiltinType
127oid2builtin (PQ.Oid x) = case x of
129oid2builtin (PQ.Oid x) = case x of
@@ -171,6 +173,7 @@ oid2builtin (PQ.Oid x) = case x of
171 2249 -> Just Record
173 2249 -> Just Record
172 2278 -> Just Void
174 2278 -> Just Void
173 2950 -> Just UUID
175 2950 -> Just UUID
174 _ -> Nothing
177 _ -> Nothing
176builtin2typname :: BuiltinType -> ByteString
179builtin2typname :: BuiltinType -> ByteString
@@ -221,6 +224,7 @@ builtin2typname typ = case typ of
221 Record -> record
224 Record -> record
222 Void -> void
225 Void -> void
223 UUID -> uuid
226 UUID -> uuid
225oid2typname :: PQ.Oid -> Maybe ByteString
229oid2typname :: PQ.Oid -> Maybe ByteString
226oid2typname (PQ.Oid x) = case x of
230oid2typname (PQ.Oid x) = case x of
@@ -270,6 +274,7 @@ oid2typname (PQ.Oid x) = case x of
270 2249 -> Just record
274 2249 -> Just record
271 2278 -> Just void
275 2278 -> Just void
272 2950 -> Just uuid
276 2950 -> Just uuid
273 _ -> Nothing
278 _ -> Nothing
275bool :: ByteString
280bool :: ByteString
@@ -409,3 +414,6 @@ void = "void"
410uuid :: ByteString
415uuid :: ByteString
411uuid = "uuid"
416uuid = "uuid"