| Safe Haskell | None |
|---|
Database.Groundhog.Postgresql
- withPostgresqlPool :: (MonadBaseControl IO m, MonadIO m) => String -> Int -> (Pool Postgresql -> m a) -> m a
- withPostgresqlConn :: (MonadBaseControl IO m, MonadIO m) => String -> (Postgresql -> m a) -> m a
- createPostgresqlPool :: MonadIO m => String -> Int -> m (Pool Postgresql)
- runDbConn :: (MonadBaseControl IO m, MonadIO m, ConnectionManager cm conn) => DbPersist conn (NoLoggingT m) a -> cm -> m a
- newtype Postgresql = Postgresql Connection
- module Database.Groundhog
- module Database.Groundhog.Generic.Sql.Functions
Documentation
Arguments
| :: (MonadBaseControl IO m, MonadIO m) | |
| => String | connection string |
| -> Int | number of connections to open |
| -> (Pool Postgresql -> m a) | |
| -> m a |
Arguments
| :: (MonadBaseControl IO m, MonadIO m) | |
| => String | connection string |
| -> (Postgresql -> m a) | |
| -> m a |
Arguments
| :: MonadIO m | |
| => String | connection string |
| -> Int | number of connections to open |
| -> m (Pool Postgresql) |
runDbConn :: (MonadBaseControl IO m, MonadIO m, ConnectionManager cm conn) => DbPersist conn (NoLoggingT m) a -> cm -> m a
Runs action within connection. It can handle a simple connection, a pool of them, etc.
newtype Postgresql Source
Constructors
| Postgresql Connection |
Instances
module Database.Groundhog