| Portability | portable |
|---|---|
| Stability | experimental |
| Maintainer | Aleksey Uymanov <s9gf4ult@gmail.com> |
| Safe Haskell | None |
Database.HDBI.PostgreSQL
Description
HDBI driver interface for PostgreSQL 8.x and above
Written by John Goerzen, jgoerzen@complete.org
- data PostgreConnection = PostgreConnection {}
- data PostgreStatement = PostgreStatement {}
- data PGStatementState
- = STNew
- | STExecuted {
- pgstResult :: !Result
- | STFetching {
- pgstResult :: !Result
- pgstColumns :: !Column
- pgstFormats :: ![Format]
- pgstTypes :: ![Oid]
- pgstTuples :: !Row
- pgstCurrent :: !Row
- | STFinished
- connectPostgreSQL :: Text -> IO PostgreConnection
- pgAffectedRows :: PostgreStatement -> IO Integer
Documentation
data PostgreConnection Source
Constructors
| PostgreConnection | |
Fields
| |
data PostgreStatement Source
Constructors
| PostgreStatement | |
Fields
| |
data PGStatementState Source
Constructors
| STNew | Newly created or reseted statement |
| STExecuted | Just executed statement |
Fields
| |
| STFetching | Fetching rows is in progress |
Fields
| |
| STFinished | Statement is finished, can still be reseted |
Arguments
| :: Text | Connection string according to the documentation |
| -> IO PostgreConnection |
Establish new PostgreSQL connection
pgAffectedRows :: PostgreStatement -> IO IntegerSource
Get the count of rows affected by UPDATE, DELETE or INSERT query