Copyright | (c) 2004 Oleg Kiselyov, Alistair Bayley |
---|---|
License | BSD-style |
Maintainer | [email protected], [email protected] |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
Database.Oracle.Enumerator
Description
- data Session
- connect :: String -> String -> String -> ConnectA Session
- prepareQuery :: QueryString -> PreparationA Session PreparedStmtObj
- prepareLargeQuery :: Int -> QueryString -> PreparationA Session PreparedStmtObj
- prepareCommand :: QueryString -> PreparationA Session PreparedStmtObj
- prepareLargeCommand :: Int -> QueryString -> PreparationA Session PreparedStmtObj
- sql :: String -> QueryString
- sqlbind :: String -> [BindA Session PreparedStmtObj BindObj] -> QueryStringTuned
- prefetch :: Int -> String -> [BindA Session PreparedStmtObj BindObj] -> QueryStringTuned
- cmdbind :: String -> [BindA Session PreparedStmtObj BindObj] -> CommandBind
- type StmtHandle = Ptr StmtStruct
- newtype Out a = Out a
- module Database.Enumerator
Documentation
prepareQuery :: QueryString -> PreparationA Session PreparedStmtObj Source #
prepareLargeQuery :: Int -> QueryString -> PreparationA Session PreparedStmtObj Source #
prepareCommand :: QueryString -> PreparationA Session PreparedStmtObj Source #
prepareLargeCommand :: Int -> QueryString -> PreparationA Session PreparedStmtObj Source #
Seems like an odd alternative to prepareCommand
(what is a large command?)
but is actually useful for when the outer query it a procedure call that
returns one or more cursors. The prefetch count for the inner cursors is
inherited from the outer statement, which in this case is a command, rather
than a select. Normally prefetch would be irrelevant (and indeed it is for
the outer command), but we also save it in the statement so that it can be
reused for the child cursors.
type StmtHandle = Ptr StmtStruct Source #
module Database.Enumerator