TouK / krush

Idiomatic persistence layer for Kotlin
Apache License 2.0
248 stars 13 forks source link

Jasync support #3

Open maxpert opened 4 years ago

maxpert commented 4 years ago

I think one of the core thing that any Kotlin ORM/persistence layer should have is the coroutine support. It's a sad landscape today where we have basic layers like https://github.com/jasync-sql/jasync-sql but nobody is building the nice idiomatic layer and almost no projects (except R2DBC) support the async DB calls. I believe Krush can actually be distinct here and support async DB out of the box.

pjagielski commented 4 years ago

Hi, Krush internally uses Exposed, which already supports coroutines and has R2DBC support in the Roadmap. I'll try to provide an example for coroutines https://github.com/JetBrains/Exposed/wiki/Transactions#working-with-coroutines https://github.com/JetBrains/Exposed/blob/master/ROADMAP.md

jhult commented 3 years ago

Here is the specific R2DBC issue for Exposed: https://github.com/JetBrains/Exposed/issues/456

And here is the updated Exposed roadmap link: https://github.com/JetBrains/Exposed/blob/master/docs/ROADMAP.md