hasql-transaction-io-0.1.0.0: Perform IO actions during transactions for Hasql
Safe HaskellNone
LanguageHaskell2010

Hasql.CursorTransactionIO

Synopsis

Documentation

data CursorTransactionIO s a Source #

A TransactionIO that also manages creation and deletion of Cursors

Instances

Instances details
MonadState Int (CursorTransactionIO s) Source # 
Instance details

Defined in Hasql.Private.CursorTransactionIO

Monad (CursorTransactionIO s) Source # 
Instance details

Defined in Hasql.Private.CursorTransactionIO

Functor (CursorTransactionIO s) Source # 
Instance details

Defined in Hasql.Private.CursorTransactionIO

Methods

fmap :: (a -> b) -> CursorTransactionIO s a -> CursorTransactionIO s b #

(<$) :: a -> CursorTransactionIO s b -> CursorTransactionIO s a #

Applicative (CursorTransactionIO s) Source # 
Instance details

Defined in Hasql.Private.CursorTransactionIO

MonadIO (CursorTransactionIO s) Source # 
Instance details

Defined in Hasql.Private.CursorTransactionIO

Methods

liftIO :: IO a -> CursorTransactionIO s a #

MonadResource (CursorTransactionIO s) Source # 
Instance details

Defined in Hasql.Private.CursorTransactionIO

data Cursor s a Source #

A PostgresSQL cursor that produces results of type a when fetched

Instances

Instances details
Functor (Cursor s) Source # 
Instance details

Defined in Hasql.Private.CursorTransactionIO

Methods

fmap :: (a -> b) -> Cursor s a -> Cursor s b #

(<$) :: a -> Cursor s b -> Cursor s a #

declareCursorFor :: params -> Statement params result -> CursorTransactionIO s (Cursor s result) Source #

Run a Statement using a cursor

fetchWithCursor :: Cursor s a -> CursorTransactionIO s a Source #

Fetch results from a cursor