Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Connect to a postgres db and run queries. This module is meant for simple one-off checks against a postgres database, such as health checks or version checks, and not for normal work.
Synopsis
- withPostgresDB :: Environment -> PostgresConnConfiguration -> TxET QErr IO a -> IO (Either QErr a)
Documentation
withPostgresDB :: Environment -> PostgresConnConfiguration -> TxET QErr IO a -> IO (Either QErr a) Source #
Connect to a postgres database and run a transaction.