ufoss-org / kotysa

The idiomatic way to write type-safe SQL in Kotlin
The Unlicense
117 stars 1 forks source link

VertX coroutine support #126

Closed guitcastro closed 12 months ago

guitcastro commented 1 year ago

It's possible to have a Vertex coroutine client as spring r2dbc?

pull-vert commented 1 year ago

Hello @guitcastro

Yes it is possible, I changed the project roadmap to plan this feature in 3.2.0 release version

pull-vert commented 12 months ago

Hi @guitcastro

This feature is now available in Kotysa 3.2.0, that was just released. A new sample project for Quarkus and coroutines was added : kotysa-quarkus-vertx-sqlclient-coroutines

guitcastro commented 12 months ago

@pull-vert O this is wholesome!

I was about to ask if you could add support to transaction using co-routine context, but looking at the code, you already done it. This is such a killer feature, I don´t know any ORM who can does that. Until now I had to use Uni in my code to compose transaction, and now I will be able to remove it.

pull-vert commented 12 months ago

Thanks a lot for this kind comment @guitcastro

In fact for consistency I reused the same coroutine SQL query API and transaction storage in the coroutine context as in the existing kotysa-r2dbc module. I'm glad that this implementation suits you !