A postgresql backend for persistent.
- withPostgresqlPool :: MonadControlIO m => Text -> Int -> (ConnectionPool -> m a) -> m a
- withPostgresqlConn :: MonadControlIO m => Text -> (Connection -> m a) -> m a
- module Database.Persist
- module Database.Persist.GenericSql
- data PostgresConf = PostgresConf {
- pgConnStr :: Text
- pgPoolSize :: Int
Documentation
:: MonadControlIO m | |
=> Text | |
-> Int | number of connections to open |
-> (ConnectionPool -> m a) | |
-> m a |
withPostgresqlConn :: MonadControlIO m => Text -> (Connection -> m a) -> m aSource
module Database.Persist
module Database.Persist.GenericSql
data PostgresConf Source
Information required to connect to a postgres database
PostgresConf | |
|