https://kotlinlang.org logo
#feed
Title
# feed
p

Pamela Hill

04/17/2019, 9:26 AM
https://www.pamelaahill.com/post/step-by-step-full-stack-kotlin-part-2 Read all about using the Exposed framework for database access in a Kotlin backend!
👍 5
🔥 1
c

cedric

04/17/2019, 8:57 PM
Nice mix of Exposed and coroutines, @Pamela Hill! Note that your
hikari
init could be a bit more idiomatic:
Copy code
private fun hikari(): HikariDataSource {
    val config = HikariConfig().apply {
        driverClassName = "org.h2.Driver"
        jdbcUrl = "jdbc:h2:mem:test"
        ...
    }
}
🙏 1
I should convert all my
transaction{}
to your
dbQuery{}
.
3 Views