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. No-op build: the file is never opened.

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. No-op build: database and onWrite are never called.

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. No-op build: database and onWrite are never called.