Stability | experimental |
---|---|
Maintainer | Leon P Smith <leon@melding-monads.com> |
Safe Haskell | None |
Note that this module is semi-internal, and you probably want to use Database.PostgreSQL.Simple.TypeInfo instead.
- data TypeInfo
- = Basic {
- typoid :: !Oid
- typcategory :: !Char
- typdelim :: !Char
- typname :: !ByteString
- | Array {
- typoid :: !Oid
- typcategory :: !Char
- typdelim :: !Char
- typname :: !ByteString
- typelem :: !TypeInfo
- | Range {
- typoid :: !Oid
- typcategory :: !Char
- typdelim :: !Char
- typname :: !ByteString
- rngsubtype :: !TypeInfo
- | Composite {
- typoid :: !Oid
- typcategory :: !Char
- typdelim :: !Char
- typname :: !ByteString
- typrelid :: !Oid
- attributes :: !(Vector Attribute)
- = Basic {
- staticTypeInfo :: Oid -> Maybe TypeInfo
- bool :: TypeInfo
- bytea :: TypeInfo
- char :: TypeInfo
- name :: TypeInfo
- int8 :: TypeInfo
- int2 :: TypeInfo
- int4 :: TypeInfo
- regproc :: TypeInfo
- text :: TypeInfo
- oid :: TypeInfo
- tid :: TypeInfo
- xid :: TypeInfo
- cid :: TypeInfo
- xml :: TypeInfo
- point :: TypeInfo
- lseg :: TypeInfo
- path :: TypeInfo
- box :: TypeInfo
- polygon :: TypeInfo
- line :: TypeInfo
- cidr :: TypeInfo
- float4 :: TypeInfo
- float8 :: TypeInfo
- abstime :: TypeInfo
- reltime :: TypeInfo
- tinterval :: TypeInfo
- unknown :: TypeInfo
- circle :: TypeInfo
- money :: TypeInfo
- macaddr :: TypeInfo
- inet :: TypeInfo
- bpchar :: TypeInfo
- varchar :: TypeInfo
- date :: TypeInfo
- time :: TypeInfo
- timestamp :: TypeInfo
- timestamptz :: TypeInfo
- interval :: TypeInfo
- timetz :: TypeInfo
- bit :: TypeInfo
- varbit :: TypeInfo
- numeric :: TypeInfo
- refcursor :: TypeInfo
- record :: TypeInfo
- void :: TypeInfo
- uuid :: TypeInfo
Documentation
A structure representing some of the metadata regarding a PostgreSQL
type, mostly taken from the pg_type
table.
Basic | |
| |
Array | |
| |
Range | |
| |
Composite | |
|
staticTypeInfo :: Oid -> Maybe TypeInfoSource