graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hasura.Backends.Postgres.Connection.Connect

Description

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

Documentation

withPostgresDB :: Environment -> PostgresConnConfiguration -> TxET QErr IO a -> IO (Either QErr a) Source #

Connect to a postgres database and run a transaction.