A set of hooks that may be used to alter the behaviour
of runSqlPoolWithExtensibleHooks in a backwards-compatible
fashion.
Modulepersistent-2.14.6.3Haskell2010
Database.Persist.SqlBackend.SqlPoolHooks
- 1 type
- 11 values
- Packagepersistent-2.14.6.3
- Exports12
- LanguageHaskell2010
- LicenceMIT
- SourceSqlPoolHooks.hs
value
defaultSqlPoolHooks :: (MonadIO m, BackendCompatible SqlBackend backend) => SqlPoolHooks m backendLifecycle hooks that may be altered to extend SQL pool behavior in a backwards compatible fashion.
By default, the hooks have the following semantics:
alterBackend has no effect
runBefore begins a transaction
runAfter commits the current transaction
runOnException rolls back the current transaction