-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: restore process duplicates did peers (#173)
fix: restore process from swift/ts jwe Signed-off-by: Cristian G <cristian.castro@iohk.io> fix: linting Signed-off-by: Cristian G <cristian.castro@iohk.io>
- Loading branch information
1 parent
82b03cc
commit f654937
Showing
11 changed files
with
267 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
...sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/pluto/DbConnectionInMemory.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package org.hyperledger.identus.walletsdk.pluto | ||
|
||
import app.cash.sqldelight.db.SqlDriver | ||
import app.cash.sqldelight.driver.jdbc.sqlite.JdbcSqliteDriver | ||
import org.hyperledger.identus.walletsdk.SdkPlutoDb | ||
import org.hyperledger.identus.walletsdk.pluto.data.DbConnection | ||
|
||
class DbConnectionInMemory : DbConnection { | ||
override var driver: SqlDriver? = null | ||
|
||
override suspend fun connectDb(context: Any?): SqlDriver { | ||
val driver = JdbcSqliteDriver(JdbcSqliteDriver.IN_MEMORY) | ||
SdkPlutoDb.Schema.create(driver) | ||
this.driver = driver | ||
return driver | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.