Copyright | (c) 2011-2012 Leon P Smith (c) 2017 Bardur Arantsson |
---|---|
License | BSD3 |
Maintainer | Leon P Smith <leon@melding-monads.com> |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- data Cursor
- declareCursor :: Connection -> Query -> IO Cursor
- closeCursor :: Cursor -> IO ()
- foldForward :: FromRow r => Cursor -> Int -> (a -> r -> IO a) -> a -> IO (Either a a)
- foldForwardWithParser :: Cursor -> RowParser r -> Int -> (a -> r -> IO a) -> a -> IO (Either a a)
Types
Cursor management
declareCursor :: Connection -> Query -> IO Cursor Source #
Declare a temporary cursor. The cursor is given a unique name for the given connection.
closeCursor :: Cursor -> IO () Source #
Close the given cursor.