groundhog-postgresql-0.4.0: PostgreSQL backend for the groundhog library.

Safe HaskellNone

Database.Groundhog.Postgresql

Synopsis

Documentation

withPostgresqlPoolSource

Arguments

:: (MonadBaseControl IO m, MonadIO m) 
=> String

connection string

-> Int

number of connections to open

-> (Pool Postgresql -> m a) 
-> m a 

withPostgresqlConnSource

Arguments

:: (MonadBaseControl IO m, MonadIO m) 
=> String

connection string

-> (Postgresql -> m a) 
-> m a 

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.