Database.Persist.Postgresql
Description
A postgresql backend for persistent.
- withPostgresqlPool :: (MonadBaseControl IO m, MonadIO m) => Text -> Int -> (ConnectionPool -> m a) -> m a
- withPostgresqlConn :: (MonadBaseControl IO m, MonadIO m) => Text -> (Connection -> m a) -> m a
- module Database.Persist
- module Database.Persist.GenericSql
- data PostgresConf = PostgresConf {
- pgConnStr :: Text
- pgPoolSize :: Int
Documentation
Arguments
| :: (MonadBaseControl IO m, MonadIO m) | |
| => Text | |
| -> Int | number of connections to open |
| -> (ConnectionPool -> m a) | |
| -> m a |
withPostgresqlConn :: (MonadBaseControl IO m, MonadIO 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
Constructors
| PostgresConf | |
Fields
| |
Instances