Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
module Database.PostgreSQL.Simple
type ConnectionPool = Pool Connection Source #
class (MonadIO m, MonadBaseControl IO m) => HasPsql m where Source #
getPsqlPool :: m ConnectionPool Source #
withPsqlConnection :: (Connection -> m a) -> m a Source #
withPsqlTransaction :: (Connection -> m a) -> m a Source #
defaultConnectInfo :: MonadIO m => m ConnectInfo Source #
createConnectionPool :: MonadIO m => ConnectInfo -> m ConnectionPool Source #
query1Else :: (MonadIO m, FromRow r, ToRow q, Exception e) => Connection -> Query -> q -> e -> m (Maybe r) Source #
query1Else_ :: (MonadIO m, FromRow r, Exception e) => Connection -> Query -> e -> m (Maybe r) Source #
executeMany :: (MonadIO m, ToRow q) => Connection -> Query -> [q] -> m Int64 Source #