{-# LANGUAGE CPP #-}
module Effectful.PostgreSQL
(
WithConnection
, withConnection
, PostgreSQL
, runWithConnection
#if POOL
, runWithConnectionPool
#endif
, runPostgreSQL
#if OTEL
, runPostgreSQLOT
#endif
, query
, query_
, queryWith
, queryWith_
, execute
, execute_
, executeMany
, withTransaction
, withTransactionLevel
, PSQL.IsolationLevel (..)
, withTransactionMode
, PSQL.TransactionMode (..)
, PSQL.ReadWriteMode (..)
, withTransactionModeRetry
, withTransactionModeRetry'
, withTransactionSerializable
, withTransactionSerialisable
, withSavepoint
, begin
, commit
, rollback
, fold
, foldWithOptions
, fold_
, foldWithOptions_
, forEach
, forEach_
, returning
, foldWith
, foldWithOptionsAndParser
, foldWith_
, foldWithOptionsAndParser_
, forEachWith
, forEachWith_
, returningWith
, PSQL.isSerializationError
, PSQL.isNoActiveTransactionError
, PSQL.isFailedTransactionError
)
where
import qualified Database.PostgreSQL.Simple.Transaction as PSQL
import Effectful.PostgreSQL.Connection as Conn
import Effectful.PostgreSQL.Effect
#if POOL
import Effectful.PostgreSQL.Connection.Pool as Pool
#endif