DatabaseConfiguration



Configuration class for a RoomDatabase.

Summary

Public constructors

DatabaseConfiguration(
    name: String?,
    migrationContainer: RoomDatabase.MigrationContainer,
    callbacks: List<RoomDatabase.Callback>?,
    journalMode: RoomDatabase.JournalMode,
    requireMigration: Boolean,
    allowDestructiveMigrationOnDowngrade: Boolean,
    migrationNotRequiredFrom: Set<Int>?,
    typeConverters: List<Any>,
    autoMigrationSpecs: List<AutoMigrationSpec>,
    allowDestructiveMigrationForAllTables: Boolean,
    sqliteDriver: SQLiteDriver?,
    queryCoroutineContext: <Error class: unknown class>?
)
N

Public constructors

DatabaseConfiguration

DatabaseConfiguration(
    name: String?,
    migrationContainer: RoomDatabase.MigrationContainer,
    callbacks: List<RoomDatabase.Callback>?,
    journalMode: RoomDatabase.JournalMode,
    requireMigration: Boolean,
    allowDestructiveMigrationOnDowngrade: Boolean,
    migrationNotRequiredFrom: Set<Int>?,
    typeConverters: List<Any>,
    autoMigrationSpecs: List<AutoMigrationSpec>,
    allowDestructiveMigrationForAllTables: Boolean,
    sqliteDriver: SQLiteDriver?,
    queryCoroutineContext: <Error class: unknown class>?
)

Public properties

allowDestructiveMigrationForAllTables

val allowDestructiveMigrationForAllTablesBoolean

allowDestructiveMigrationOnDowngrade

val allowDestructiveMigrationOnDowngradeBoolean

autoMigrationSpecs

val autoMigrationSpecsList<AutoMigrationSpec>

callbacks

val callbacksList<RoomDatabase.Callback>?

journalMode

val journalModeRoomDatabase.JournalMode

migrationContainer

val migrationContainerRoomDatabase.MigrationContainer

name

val nameString?

queryCoroutineContext

val queryCoroutineContextCoroutineContext?

requireMigration

val requireMigrationBoolean

sqliteDriver

val sqliteDriverSQLiteDriver?

typeConverters

val typeConvertersList<Any>