From f8165fccbddb873a4a2812064a1b609124ddb6f3 Mon Sep 17 00:00:00 2001 From: "Wyatt J. Miller" Date: Wed, 4 May 2022 14:32:30 -0400 Subject: [PATCH] added database manager (jdbc driver and url) --- .../com/wyattjmiller/data/DatabaseManager.kt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/main/kotlin/com/wyattjmiller/data/DatabaseManager.kt diff --git a/src/main/kotlin/com/wyattjmiller/data/DatabaseManager.kt b/src/main/kotlin/com/wyattjmiller/data/DatabaseManager.kt new file mode 100644 index 0000000..b45510d --- /dev/null +++ b/src/main/kotlin/com/wyattjmiller/data/DatabaseManager.kt @@ -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" + ) + } +} \ No newline at end of file