gofabian / spring-boot-data-r2dbc-jooq

Reactive JOOQ - an R2DBC adapter for Spring Boot
MIT License
39 stars 11 forks source link

Programmatic transactions #12

Closed gofabian closed 3 years ago

gofabian commented 4 years ago

This is intended as alternative to the @Transactional annotations and is more the JOOQ approach.

Something like ReactiveJooq.transaction(dslContext, () -> Mono.empty())

Spring Data R2DBC docs: https://github.com/spring-projects/spring-data-r2dbc/blob/master/src/main/asciidoc/reference/r2dbc-transactions.adoc JOOQ docs: https://www.jooq.org/doc/latest/manual/sql-execution/transaction-management/

gofabian commented 3 years ago

Programmatic transactions can be implemented using TransactionalOperator.

Example: https://medium.com/swlh/working-with-relational-database-using-r2dbc-databaseclient-d61a60ebc67f Reference: https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/transaction/reactive/TransactionalOperator.html

I close the issue because the feature can be realized already (outside of this library).