kotlin/context-menu-extension/src/main/kotlin/com/example/db/DbInit.kt [1:21]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - package com.example.db import com.example.config import org.jetbrains.exposed.sql.Database import org.jetbrains.exposed.sql.SchemaUtils import org.jetbrains.exposed.sql.transactions.transaction fun initDbConnection() { // see application.conf file in resources val host = config.getString("postgresql.host") val port = config.getString("postgresql.port") val user = config.getString("postgresql.user") val password = config.getString("postgresql.password") val database = config.getString("postgresql.database") Database.connect( "jdbc:postgresql://$host:$port/$database", driver = "org.postgresql.Driver", user = user, password = password ) transaction { - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - kotlin/sync-api/src/main/kotlin/com/example/db/DbInit.kt [1:21]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - package com.example.db import com.example.config import org.jetbrains.exposed.sql.Database import org.jetbrains.exposed.sql.SchemaUtils import org.jetbrains.exposed.sql.transactions.transaction fun initDbConnection() { // see application.conf file in resources val host = config.getString("postgresql.host") val port = config.getString("postgresql.port") val user = config.getString("postgresql.user") val password = config.getString("postgresql.password") val database = config.getString("postgresql.database") Database.connect( "jdbc:postgresql://$host:$port/$database", driver = "org.postgresql.Driver", user = user, password = password ) transaction { - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -