added database manager (jdbc driver and url)

This commit is contained in:
Wyatt J. Miller 2022-05-04 14:32:30 -04:00
parent 968aa5fab0
commit f8165fccbd

View 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"
)
}
}