Companion

object Companion

Factories for SqliteDb.

Functions

Link copied to clipboard
fun file(name: String, file: File, tableHints: Map<String, TableHint> = emptyMap(), valuePolicy: SqliteValuePolicy = SqliteValuePolicy.MASK_SENSITIVE, unmasked: Set<String> = emptySet()): SqliteDb

A database file that the tab opens read-only for each request, and closes after it. The file can be in WAL mode, and the app or a library can write to it while the tab reads it.

Link copied to clipboard
fun framework(name: String, writable: Boolean = false, tableHints: Map<String, TableHint> = emptyMap(), valuePolicy: SqliteValuePolicy = SqliteValuePolicy.MASK_SENSITIVE, onWrite: Runnable? = null, unmasked: Set<String> = emptySet(), database: () -> SQLiteDatabase): SqliteDb

A database that the app has open as a framework SQLiteDatabase, such as the one that a SQLiteOpenHelper returns.

Link copied to clipboard
fun support(name: String, writable: Boolean = false, tableHints: Map<String, TableHint> = emptyMap(), valuePolicy: SqliteValuePolicy = SqliteValuePolicy.MASK_SENSITIVE, onWrite: Runnable? = null, unmasked: Set<String> = emptySet(), database: () -> SupportSQLiteDatabase): SqliteDb

A database that the app has open as an androidx SupportSQLiteDatabase. For Room, that is { roomDb.openHelper.writableDatabase }; an encrypted Room database, such as one that SQLCipher opens, works the same way.