andrewoma / coroutine-jdbc

An experiment in bridging blocking JDBC calls with Kotlin coroutines.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

An experiment in bridging blocking JDBC calls with Kotlin coroutines.


Languages

Language:Kotlin 100.0%