| Copyright | (c) 2011-2012 Leon P Smith | 
|---|---|
| License | BSD3 | 
| Maintainer | Leon P Smith <leon@melding-monads.com> | 
| Stability | experimental | 
| Safe Haskell | None | 
| Language | Haskell98 | 
Database.PostgreSQL.Simple.TypeInfo.Static
Description
This module contains portions of the pg_type table that are relevant
 to postgresql-simple and are believed to not change between PostgreSQL
 versions.
- 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
- json :: TypeInfo
- jsonb :: TypeInfo
Documentation
A structure representing some of the metadata regarding a PostgreSQL
   type,  mostly taken from the pg_type table.
Constructors
| Basic | |
| Fields 
 | |
| Array | |
| Fields 
 | |
| Range | |
| Fields 
 | |
| Composite | |
| Fields 
 | |
staticTypeInfo :: Oid -> Maybe TypeInfo Source