https://kotlinlang.org logo
#komapper
Title
# komapper
m

Michal Patejko

07/08/2022, 8:03 AM
HI, is there any example of how to use HikariPool with komapper or any other ConnectionPool?
t

Toshihiro Nakamura

07/09/2022, 11:38 AM
You can use HikariCP as follows:
Copy code
val config = HikariConfig().apply {
    jdbcUrl = "jdbc:h2:mem:quickstart;DB_CLOSE_DELAY=-1"
}
val dataSource = HikariDataSource(config)
val database = JdbcDatabase(dataSource = dataSource, dialect = H2JdbcDialect())
👍 1
10 Views