Copyright | © 2017 All rights reserved. |
---|---|
License | BSD3 |
Maintainer | Evan Cofsky <evan@theunixman.com> |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
- module Database.PostgreSQL.Typed
- module Database.PostgreSQL.Typed.Protocol
- module Database.PostgreSQL.Typed.Types
- data RawStatement
- data ChunkRows
- pgConnect :: MonadBaseControl IO m => PGDatabase -> m PGConnection
- pgDisconnect :: MonadBaseControl IO m => PGConnection -> m ()
- pgReconnect :: MonadBaseControl IO m => PGConnection -> PGDatabase -> m PGConnection
- pgDescribe :: (MonadBaseControl IO m, Traversable f) => PGConnection -> RawStatement -> f OID -> Bool -> m ([OID], [(ByteString, OID, Bool)])
- pgSimpleQuery :: MonadBaseControl IO m => PGConnection -> RawStatement -> m (Int, [PGValues])
- pgSimpleQueries_ :: MonadBaseControl IO m => PGConnection -> RawStatement -> m ()
- pgPreparedQuery :: (MonadBaseControl IO m, Traversable f) => PGConnection -> RawStatement -> f OID -> PGValues -> f Bool -> m (Int, [PGValues])
- pgPreparedLazyQuery :: (MonadBaseControl IO m, Traversable f) => PGConnection -> RawStatement -> f OID -> PGValues -> f Bool -> ChunkRows -> m [PGValues]
- pgCloseStatement :: (MonadBaseControl IO m, Traversable f) => PGConnection -> RawStatement -> f OID -> m ()
- pgBegin :: MonadBaseControl IO m => PGConnection -> m ()
- pgCommit :: MonadBaseControl IO m => PGConnection -> m ()
- pgRollback :: MonadBaseControl IO m => PGConnection -> m ()
- pgCommitAll :: MonadBaseControl IO m => PGConnection -> m ()
- pgRollbackAll :: MonadBaseControl IO m => PGConnection -> m ()
- pgTransaction :: (MonadCatch m, MonadBaseControl IO m) => PGConnection -> m a -> m a
Documentation
module Database.PostgreSQL.Typed
data RawStatement Source #
Wrapper for raw SQL statements.
pgConnect :: MonadBaseControl IO m => PGDatabase -> m PGConnection Source #
pgDisconnect :: MonadBaseControl IO m => PGConnection -> m () Source #
pgReconnect :: MonadBaseControl IO m => PGConnection -> PGDatabase -> m PGConnection Source #
:: (MonadBaseControl IO m, Traversable f) | |
=> PGConnection | |
-> RawStatement | SQL string |
-> f OID | Optional type specifications |
-> Bool | Guess nullability, otherwise assume everything is |
-> m ([OID], [(ByteString, OID, Bool)]) | a list of parameter types, and a list of result field names, types, and nullability indicators. |
pgSimpleQuery :: MonadBaseControl IO m => PGConnection -> RawStatement -> m (Int, [PGValues]) Source #
pgSimpleQueries_ :: MonadBaseControl IO m => PGConnection -> RawStatement -> m () Source #
pgPreparedQuery :: (MonadBaseControl IO m, Traversable f) => PGConnection -> RawStatement -> f OID -> PGValues -> f Bool -> m (Int, [PGValues]) Source #
pgPreparedLazyQuery :: (MonadBaseControl IO m, Traversable f) => PGConnection -> RawStatement -> f OID -> PGValues -> f Bool -> ChunkRows -> m [PGValues] Source #
pgCloseStatement :: (MonadBaseControl IO m, Traversable f) => PGConnection -> RawStatement -> f OID -> m () Source #
pgBegin :: MonadBaseControl IO m => PGConnection -> m () Source #
pgCommit :: MonadBaseControl IO m => PGConnection -> m () Source #
pgRollback :: MonadBaseControl IO m => PGConnection -> m () Source #
pgCommitAll :: MonadBaseControl IO m => PGConnection -> m () Source #
pgRollbackAll :: MonadBaseControl IO m => PGConnection -> m () Source #
pgTransaction :: (MonadCatch m, MonadBaseControl IO m) => PGConnection -> m a -> m a Source #