Portability | portable |
---|---|
Stability | experimental |
Maintainer | Aleksey Uymanov <s9gf4ult@gmail.com> |
Safe Haskell | None |
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
Documentation
data PostgreConnection Source
PostgreConnection | |
|
data PostgreStatement Source
PostgreStatement | |
|
data PGStatementState Source
STNew | Newly created or reseted statement |
STExecuted | Just executed statement |
| |
STFetching | Fetching rows is in progress |
| |
STFinished | Statement is finished, can still be reseted |
:: Text | Connection string according to the documentation |
-> IO PostgreConnection |
Establish new PostgreSQL connection