We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1aa7aff commit 43ebe78Copy full SHA for 43ebe78
postgres/src/main/kotlin/com/example/plugins/Routing.kt
@@ -70,7 +70,7 @@ fun Application.configureRouting() {
70
fun Application.connectToPostgres(embedded: Boolean): Connection {
71
Class.forName("org.postgresql.Driver")
72
if (embedded) {
73
- return DriverManager.getConnection("jdbc:h2:mem:test;DB_CLOSE_DELAY=-1", "root", "")
+ return DriverManager.getConnection("jdbc:postgresql://localhost/test;DB_CLOSE_DELAY=-1", "root", "")
74
} else {
75
val url = environment.config.property("postgres.url").getString()
76
val user = environment.config.property("postgres.user").getString()
0 commit comments