dany giguere
01/05/2022, 11:05 PMval config = HikariConfig().apply {
jdbcUrl = "jdbc:<mysql://localhost/dbname>"
driverClassName = "com.mysql.cj.jdbc.Driver"
username = "username"
password = "secret"
maximumPoolSize = 10
}
val dataSource = HikariDataSource(config)
Database.connect(dataSource)
from the documentation here: https://github.com/JetBrains/Exposed/wiki/DataBase-and-DataSourceEndre Deak
01/06/2022, 12:16 AMdave08
01/06/2022, 4:04 AMtransaction(db) {}