Não está documentado aqui https://www.jooq.org/doc/latest/manual/sql-execution/transaction-management/
Ele apenas mostra que uma exceção não capturada causará uma reversão.
O problema é que RollbackToSavepointStep
não é um Publisher
.
É possível fazer rollback programaticamente?
Se eu tentar dsl().rollback().executeAsync().await()
, obtenho:
DetachedException: Attempt to execute a blocking method (e.g. Query.execute() or ResultQuery.fetch()) when only an R2BDC ConnectionFactory was configured. jOOQ's RowCountQuery and ResultQuery extend Publisher, which allows for reactive streams implementations to subscribe to the results of a jOOQ query. Simply embed your query in the stream, e.g. using Flux.from(query). See also: https://www.jooq.org/doc/latest/manual/sql-execution/fetching/reactive-fetching/