persistent-sql-lifted-0.4.2.0: Monad classes for running queries with Persistent and Esqueleto
Safe HaskellSafe-Inferred
LanguageGHC2021

Database.Persist.Sql.Lifted.Savepoint

Synopsis

Documentation

rollbackWhen Source #

Arguments

:: (HasCallStack, MonadSqlBackend m) 
=> (a -> Bool)

When to ROLLBACK based on the result of the action

-> m a

The action to be run

-> m a 

Runs a SQL action with SAVEPOINT, rolling back when specified