Safe Haskell | Safe-Inferred |
---|
- data ConnectInfo = ConnectInfo {}
- data Connection = Connection {
- connectionHandle :: MVar (Maybe Handle)
- connectionObjects :: MVar (IntMap Type)
- data Field = Field {}
- data Result = Result {
- resultRows :: [[Maybe ByteString]]
- resultDesc :: Maybe [Field]
- resultError :: Maybe ByteString
- resultNotices :: [String]
- resultType :: MessageType
- resultTagRows :: Maybe Integer
- data Type
- = Short
- | Long
- | LongLong
- | Decimal
- | Numeric
- | Real
- | DoublePrecision
- | CharVarying
- | Characters
- | Text
- | Boolean
- | Timestamp
- | TimestampWithZone
- | Date
- | Time
- data MessageType
- data Size
- data FormatCode
- = TextCode
- | BinaryCode
- data Modifier = Modifier
- type ObjectId = Int
- newtype Pool = Pool {}
- data PoolState = PoolState {}
- data ConnectionError
Documentation
data ConnectInfo Source
Connection configuration.
data Connection Source
A database connection.
Connection | |
|
A field description.
Result of a database query.
Result | |
|
Short | 2 bytes, small-range integer |
Long | 4 bytes, usual choice for integer |
LongLong | 8 bytes large-range integer |
Decimal | variable, user-specified precision, exact, no limit |
Numeric | variable, user-specified precision, exact, no limit |
Real | 4 bytes, variable-precision, inexact |
DoublePrecision | 8 bytes, variable-precision, inexact |
CharVarying | character varying(n), varchar(n), variable-length |
Characters | character(n), char(n), fixed-length |
Text | text, variable unlimited length Lazy. Decoded from UTF-8 into Haskell native encoding. |
Boolean | boolean, 1 byte, state of true or false |
Timestamp | timestamp without time zone More information about PostgreSQL’s dates here: http://www.postgresql.org/docs/current/static/datatype-datetime.html |
TimestampWithZone | timestamp with time zone |
Date | date, 4 bytes julian day |
Time | 8 bytes, time of day (no date) |
data MessageType Source
An internal message type.
data FormatCode Source
A text format code. Will always be TextCode for DESCRIBE queries.
A connection pool.
data ConnectionError Source
QueryError (Maybe String) | Query returned an error. |
QueryEmpty | The query was empty. |
AuthenticationFailed String | Connecting failed due to authentication problem. |
InitializationError String | Initialization (e.g. getting data types) failed. |
ConnectionLost | Connection was lost when using withConnection. |
UnsupportedAuthenticationMethod Int32 String | Unsupported method of authentication (e.g. md5). |
GeneralError String |