withSavepointEither
suspend fun <SqlConnectionT : SqlConnection, RollbackResult, ReleaseResult> DatabaseClient<SqlConnectionT>.withSavepointEither(savepointName: String, function: suspend (DatabaseClient<SqlConnectionT>) -> Either<RollbackResult, ReleaseResult>): Either<RollbackResult, ReleaseResult>(source)
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.