From 64c828b87e13632d8db1e36ba63fc135ddc27376 Mon Sep 17 00:00:00 2001 From: Nathan Cannon Date: Sat, 15 Sep 2018 20:57:51 +0100 Subject: [PATCH] Currently using local sqlite db for playing around with. --- backend/configuration.yml | 11 +++++++++-- backend/pom.xml | 5 +++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/backend/configuration.yml b/backend/configuration.yml index 9302209..a148c8b 100644 --- a/backend/configuration.yml +++ b/backend/configuration.yml @@ -1,6 +1,13 @@ database: - driverClass: org.h2.Driver - url: jdbc:h2:mem:myDb;DB_CLOSE_DELAY=-1 + # the name of your JDBC driver + driverClass: org.sqlite.JDBC + + # the JDBC URL + url: jdbc:sqlite:sampledatabase.db + + # any properties specific to your JDBC driver: + properties: + foreign_keys: true server: rootPath: /api/ \ No newline at end of file diff --git a/backend/pom.xml b/backend/pom.xml index 5f1d79d..3ed3ed9 100644 --- a/backend/pom.xml +++ b/backend/pom.xml @@ -51,6 +51,11 @@ h2 1.4.197 + + org.xerial + sqlite-jdbc + 3.23.1 +