filmov
tv
jOOQ Transactions with Kotlin Context Receivers
Показать описание
jOOQ allows us to take one of its DSL objects, start a transaction on it, and pass that around. So we use that facility, carefully managing scope functions to make sure that transactions are completed. We also find a way to write a test that shows what information is visible between transactions.
This is part 70 of an exploration of where a Test Driven Development implementation of the Gilded Rose stock control system might take us in Kotlin. You can see the whole series as a playlist
and the code on GitHub
If you like this, you’ll probably like my book Java to Kotlin, A Refactoring Guidebook