added database manager (jdbc driver and url)
This commit is contained in:
parent
968aa5fab0
commit
f8165fccbd
16
src/main/kotlin/com/wyattjmiller/data/DatabaseManager.kt
Normal file
16
src/main/kotlin/com/wyattjmiller/data/DatabaseManager.kt
Normal file
@ -0,0 +1,16 @@
|
||||
package com.wyattjmiller.data
|
||||
|
||||
import io.ktor.server.config.*
|
||||
import org.ktorm.database.Database
|
||||
|
||||
class DatabaseManager() {
|
||||
var database: Database
|
||||
|
||||
init {
|
||||
database = Database.connect("jdbc:postgresql://10.10.10.21:5432/recipefolio",
|
||||
"org.postgresql.Driver",
|
||||
user = "wyatt",
|
||||
password = "wjm"
|
||||
)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user