withSavepointEither

Currently only supported with PostgreSQL. A savepoint destroys one with the same name so be careful.

Parameters

function

return Either.Right to release the savepoint, or Either.Left to roll back to the savepoint.