| Safe Haskell | Safe-Inferred |
|---|
Database.PostgreSQL.Base.Types
- 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.
Constructors
| ConnectInfo | |
Fields
| |
Instances
data Connection Source
A database connection.
Constructors
| Connection | |
Fields
| |
A field description.
Constructors
| Field | |
Fields | |
Result of a database query.
Constructors
| Result | |
Fields
| |
Constructors
| 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.
Constructors
| CommandComplete | |
| RowDescription | |
| DataRow | |
| EmptyQueryResponse | |
| ErrorResponse | |
| ReadyForQuery | |
| NoticeResponse | |
| AuthenticationOk | |
| Query | |
| PasswordMessage | |
| UnknownMessageType |
Instances
data FormatCode Source
A text format code. Will always be TextCode for DESCRIBE queries.
Constructors
| TextCode | |
| BinaryCode |
Instances
A connection pool.
Constructors
| PoolState | |
Fields | |
data ConnectionError Source
Constructors
| 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 |