add explicit username and password

This commit is contained in:
Julius 2020-03-16 16:58:35 +01:00
parent 4e43d335df
commit 6d5df25d6a

View file

@ -20,7 +20,9 @@ fun main() {
val token: String = System.getenv("DISCORD_TOKEN") ?: throw RuntimeException("Missing DISCORD_TOKEN in env!") val token: String = System.getenv("DISCORD_TOKEN") ?: throw RuntimeException("Missing DISCORD_TOKEN in env!")
Database.connect( Database.connect(
System.getenv("JDBC_URL") ?: "jdbc:sqlite:test.db", System.getenv("JDBC_URL") ?: "jdbc:sqlite:test.db",
System.getenv("JDBC_DRIVER") ?: "org.sqlite.JDBC" System.getenv("JDBC_DRIVER") ?: "org.sqlite.JDBC",
System.getenv("JDBC_USER") ?: "",
System.getenv("JDBC_PASSWORD") ?: ""
) )
TransactionManager.manager.defaultIsolationLevel = Connection.TRANSACTION_SERIALIZABLE TransactionManager.manager.defaultIsolationLevel = Connection.TRANSACTION_SERIALIZABLE
transaction { transaction {