DriverFactory

actual class DriverFactory

Android SQLDelight driver factory for app-private SQLite wallet databases.

Parameters

context

Android context used by AndroidSqliteDriver.

expect class DriverFactory

Platform factory for encrypted SQLDelight drivers used by the mobile wallet database.

actual class DriverFactory

iOS SQLDelight driver factory for native SQLite wallet databases.

Constructors

Link copied to clipboard
constructor(context: Context)
constructor()

Functions

Link copied to clipboard
actual fun createEncryptedDriver(databaseName: String, encryptionKey: DatabaseEncryptionKey, isDeviceLocal: Boolean, walletId: String): SqlDriver

Creates a SQLCipher-backed Android driver for databaseName.

expect fun createEncryptedDriver(databaseName: String, encryptionKey: DatabaseEncryptionKey, isDeviceLocal: Boolean = true, walletId: String = databaseName): SqlDriver

Creates an encrypted SQLDelight driver for the named wallet database.

actual fun createEncryptedDriver(databaseName: String, encryptionKey: DatabaseEncryptionKey, isDeviceLocal: Boolean, walletId: String): SqlDriver

Creates a SQLCipher-backed native driver for databaseName.

Link copied to clipboard
actual fun deleteDatabase(databaseName: String)

Deletes the Android database file and SQLite sidecar files for databaseName.

expect fun deleteDatabase(databaseName: String)

Deletes the database file and SQLite sidecar files for databaseName.

actual fun deleteDatabase(databaseName: String)

Deletes the native database file and SQLite sidecar files for databaseName.

Link copied to clipboard
fun useAppGroup(identifier: String): DriverFactory

Uses the shared App Group container for the database and all SQLite sidecars.