这里没有记录https://www.jooq.org/doc/latest/manual/sql-execution/transaction-management/
它仅向您显示未捕获的异常将导致回滚。
问题是RollbackToSavepointStep
不是Publisher
。
是否可以通过编程方式回滚?
如果我尝试的dsl().rollback().executeAsync().await()
话我会得到:
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/