Safe Haskell | None |
---|---|
Language | Haskell2010 |
Database.PostgreSQL.PQTypes.Internal.State
Description
Definition of internal DBT state.
Synopsis
- data DBState (m :: Type -> Type) = DBState {
- dbConnection :: !Connection
- dbConnectionSource :: !(ConnectionSourceM m)
- dbTransactionSettings :: !TransactionSettings
- dbLastQuery :: !SomeSQL
- dbRecordLastQuery :: !Bool
- dbQueryResult :: !(forall row. FromRow row => Maybe (QueryResult row))
- updateStateWith :: forall sql (m :: Type -> Type) r. IsSQL sql => DBState m -> sql -> (r, ForeignPtr PGresult) -> IO (r, DBState m)
Documentation
data DBState (m :: Type -> Type) Source #
Internal DB state.
Constructors
DBState | |
Fields
|