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 existingLocation(databaseName: String): String?

Storage location of the already opened managed wallet. Ambiguous installations cannot enroll.

Identifies the container used by the foreground wallet.

openExistingEncryptedDriver
Link copied to clipboard
fun openExistingEncryptedDriver(databaseName: String, location: String, encryptionKey: DatabaseEncryptionKey, walletId: String): SqlDriver?

Opens only the recorded location at the current schema without creation, migration or repair.

fun openExistingEncryptedDriver(databaseName: String, location: String, encryptionKey: DatabaseEncryptionKey, walletId: String): SqlDriver?

Opens the authorized container's existing database without creating or migrating it.

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

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