New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Transaction management for SQLClient #141
Comments
the appropriate location in an helper class in vertx-rx-java2/src/main/java/io/vertx/reactivex/ext/sql |
Thanks @vietj ! Any comment on the proposal itself? |
it sounds a better alternative to my initial proposal I did for 3.6 to ease finally like semantics on Flowable. So I'm happy you made it. I think that |
Well, just threw some code here so far, not tested yet :)
👍 |
@vietj as discussed off-list, narrowing down the scope of this issue to transaction management only. We will address |
I guess we can close this PR ? |
👍 |
When using an Rxified SQLClient, it's not obvious for everyone how to properly manage a connection. Proper transaction management is even worse.
It would help to have utility methods to manage a connection, a transaction, or both.
Let's take an example:
Now it's easy to write such kind of flow:
Of course, we'd need other helper methods for
Single
,Completable
andMaybe
.Also, it's not clear to me where we'd add this code. In this repo? In
vertx-sql-common
? Should we use utility classes as in the example above? Or should we add these methods to RxifiedSQLClient
classes? In this case, how?The text was updated successfully, but these errors were encountered: