Class CockroachRetryingTransactionalExecutionTemplate
java.lang.Object
org.flywaydb.core.internal.jdbc.TransactionalExecutionTemplate
org.flywaydb.database.cockroachdb.CockroachRetryingTransactionalExecutionTemplate
- All Implemented Interfaces:
org.flywaydb.core.internal.jdbc.ExecutionTemplate
public class CockroachRetryingTransactionalExecutionTemplate
extends org.flywaydb.core.internal.jdbc.TransactionalExecutionTemplate
Spring-like template for executing transactions. Cockroach always operates with transaction isolation
level SERIALIZABLE and needs a retrying pattern.
-
Method Summary
-
Method Details
-
execute
Executes this callback within a transaction- Specified by:
executein interfaceorg.flywaydb.core.internal.jdbc.ExecutionTemplate- Overrides:
executein classorg.flywaydb.core.internal.jdbc.TransactionalExecutionTemplate- Parameters:
transactionCallback- The callback to execute.- Returns:
- The result of the transaction code.
-