/coroutine-jdbc

An experiment in bridging blocking JDBC calls with Kotlin coroutines.

Primary LanguageKotlin

Kotlin coroutines meets JDBC

An experiment in bridging blocking JDBC calls with Kotlin coroutines.

It supports re-entrant transactions allowing services to be composed.

See DatabaseTest.kt for examples and Database.kt for the implementation.

Credits

  • Roman Elizarov for the original idea of the fixed thread pool for bridging and how to obtain the current coroutine context