Created
March 7, 2017 17:18
-
-
Save matiangul/260a2a3fe74614313ce53077cf5efba6 to your computer and use it in GitHub Desktop.
Hikari Data Source configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val dataSource = HikariDataSource(HikariConfig(Properties().apply { | |
setProperty("jdbcUrl", "jdbc:mysql://localhost/rcs_parsing_challenge") | |
setProperty("dataSource.user", "root") | |
setProperty("dataSource.password", "password") | |
put("dataSource.cachePrepStmts", true) | |
put("dataSource.useServerPrepStmts", true) | |
put("dataSource.rewriteBatchedStatements", true) | |
put("maximumPoolSize", 21) | |
put("idleTimeout", 30000) | |
put("autoCommit", false) | |
})) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment