Commit b8a18f16 authored by Peter van 't Hof's avatar Peter van 't Hof

Adding config

parent 533cc566
......@@ -303,8 +303,12 @@ object SummaryDb {
def openSqliteSummary(file: File): SummaryDb = {
if (!summaryConnections.contains(file)) {
val config: org.sqlite.SQLiteConfig = new org.sqlite.SQLiteConfig()
config.enforceForeignKeys(true)
config.setBusyTimeout("10000")
config.setSynchronous(org.sqlite.SQLiteConfig.SynchronousMode.OFF)
val exist = file.exists()
val db = Database.forURL(s"jdbc:sqlite:${file.getAbsolutePath}", driver = "org.sqlite.JDBC")
val db = Database.forURL(s"jdbc:sqlite:${file.getAbsolutePath}", driver = "org.sqlite.JDBC", prop = config.toProperties)
val s = new SummaryDb(db)
if (!exist) s.createTables()
summaryConnections += file -> s
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment