HI, is there any example of how to use HikariPool ...
# komapper
m
HI, is there any example of how to use HikariPool with komapper or any other ConnectionPool?
t
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