module Database.PostgreSQL.PQTypes.Internal.State (
DBState(..)
) where
import Prelude
import Database.PostgreSQL.PQTypes.FromRow
import Database.PostgreSQL.PQTypes.Internal.Connection
import Database.PostgreSQL.PQTypes.Internal.QueryResult
import Database.PostgreSQL.PQTypes.SQL.Class
import Database.PostgreSQL.PQTypes.Transaction.Settings
data DBState m = DBState {
dbConnection :: !Connection
, dbConnectionSource :: !(ConnectionSourceM m)
, dbTransactionSettings :: !TransactionSettings
, dbLastQuery :: !SomeSQL
, dbQueryResult :: !(forall row. FromRow row => Maybe (QueryResult row))
}