gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libeufin] 03/03: Fix Nexus migration to SQLite3.


From: gnunet
Subject: [libeufin] 03/03: Fix Nexus migration to SQLite3.
Date: Tue, 28 Jan 2020 17:43:08 +0100

This is an automated email from the git hooks/post-receive script.

marcello pushed a commit to branch master
in repository libeufin.

commit ba8d00d4651e45f5210377a7040fd609f89bc23f
Author: Marcello Stanisci <address@hidden>
AuthorDate: Tue Jan 28 17:42:32 2020 +0100

    Fix Nexus migration to SQLite3.
---
 nexus/src/main/kotlin/tech/libeufin/nexus/DB.kt   | 3 +++
 nexus/src/main/kotlin/tech/libeufin/nexus/JSON.kt | 1 -
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/DB.kt 
b/nexus/src/main/kotlin/tech/libeufin/nexus/DB.kt
index 977aeca..f337b95 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/DB.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/DB.kt
@@ -2,7 +2,9 @@ package tech.libeufin.nexus
 
 import org.jetbrains.exposed.dao.*
 import org.jetbrains.exposed.sql.*
+import org.jetbrains.exposed.sql.transactions.TransactionManager
 import org.jetbrains.exposed.sql.transactions.transaction
+import java.sql.Connection
 
 
 object EbicsSubscribersTable : IntIdTable() {
@@ -37,6 +39,7 @@ class EbicsSubscriberEntity(id: EntityID<Int>) : 
IntEntity(id) {
 
 fun dbCreateTables() {
     Database.connect("jdbc:sqlite:libeufin-nexus.sqlite3", "org.sqlite.JDBC")
+    TransactionManager.manager.defaultIsolationLevel = 
Connection.TRANSACTION_SERIALIZABLE
 
     transaction {
         addLogger(StdOutSqlLogger)
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/JSON.kt 
b/nexus/src/main/kotlin/tech/libeufin/nexus/JSON.kt
index ad33854..202548e 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/JSON.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/JSON.kt
@@ -31,7 +31,6 @@ data class EbicsKeysBackup(
  * This object is POSTed by clients _after_ having created
  * a EBICS subscriber at the sandbox.
  */
-@JsonClass(generateAdapter = true) // USED?
 data class EbicsSubscriberInfoRequest(
     val ebicsURL: String,
     val hostID: String,

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]