| Takusen-0.8.2: Database library with left-fold interface, for PostgreSQL, Oracle, SQLite, ODBC. | Contents | Index |
|
Database.PostgreSQL.Enumerator | Portability | non-portable | Stability | experimental | Maintainer | oleg@pobox.com, alistair@abayley.org |
|
|
|
|
|
Description |
PostgreSQL implementation of Database.Enumerator.
|
|
Synopsis |
|
|
|
Documentation |
|
data Session |
Instances | |
|
|
connect :: [ConnectAttr] -> ConnectA Session |
|
data ConnectAttr |
Specify connection options to connect.
You only need to use whatever subset is relevant for your connection.
| Constructors | CAhost String | | CAhostaddr String | | CAport String | | CAdbname String | | CAuser String | | CApassword String | | CAconnect_timeout Int | | CAoptions String | | CAsslmode String | | CAservice String | |
|
|
|
prepareStmt :: String -> QueryString -> [Oid] -> PreparationA Session PreparedStmtObj |
|
preparePrefetch :: Int -> String -> QueryString -> [Oid] -> PreparationA Session PreparedStmtObj |
|
prepareQuery :: String -> QueryString -> [Oid] -> PreparationA Session PreparedStmtObj |
|
prepareLargeQuery :: Int -> String -> QueryString -> [Oid] -> PreparationA Session PreparedStmtObj |
|
prepareCommand :: String -> QueryString -> [Oid] -> PreparationA Session PreparedStmtObj |
|
sql :: String -> QueryString |
The simplest kind of a statement: no tuning parameters,
all default, little overhead.
|
|
sqlbind :: String -> [BindA Session PreparedStmtObj BindObj] -> QueryStringTuned |
|
prefetch :: Int -> String -> [BindA Session PreparedStmtObj BindObj] -> QueryStringTuned |
|
cmdbind :: String -> [BindA Session PreparedStmtObj BindObj] -> CommandBind |
|
bindType :: PGType a => a -> Oid |
bindType is useful when constructing the list of Oids for stmtPrepare.
You don't need to pass the actual bind values, just dummy values
of the same type (the value isn't used, so undefined is OK here).
|
|
module Database.Enumerator |
|
Produced by Haddock version 0.7 |