import androidx.room.InvalidationTracker import androidx.room.RoomOpenDelegate import androidx.room.migration.AutoMigrationSpec import androidx.room.migration.Migration import androidx.room.util.TableInfo import androidx.room.util.TableInfo.Companion.read import androidx.room.util.dropFtsSyncTriggers import androidx.sqlite.SQLiteConnection import androidx.sqlite.execSQL import javax.`annotation`.processing.Generated import kotlin.Lazy import kotlin.String import kotlin.Suppress import kotlin.collections.List import kotlin.collections.Map import kotlin.collections.MutableList import kotlin.collections.MutableMap import kotlin.collections.MutableSet import kotlin.collections.Set import kotlin.collections.mutableListOf import kotlin.collections.mutableMapOf import kotlin.collections.mutableSetOf import kotlin.reflect.KClass @Generated(value = ["androidx.room.RoomProcessor"]) @Suppress(names = ["UNCHECKED_CAST", "DEPRECATION", "REDUNDANT_PROJECTION", "REMOVAL"]) public class MyDatabase_Impl : MyDatabase() { private val _myDao: Lazy = lazy { MyDao_Impl(this) } protected override fun createOpenDelegate(): RoomOpenDelegate { val _openDelegate: RoomOpenDelegate = object : RoomOpenDelegate(1, "195d7974660177325bd1a32d2c7b8b8c", "7458a901120796c5bbc554e2fefd262f") { public override fun createAllTables(connection: SQLiteConnection) { connection.execSQL("CREATE TABLE IF NOT EXISTS `MyEntity` (`pk` INTEGER NOT NULL, PRIMARY KEY(`pk`))") connection.execSQL("CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)") connection.execSQL("INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '195d7974660177325bd1a32d2c7b8b8c')") } public override fun dropAllTables(connection: SQLiteConnection) { connection.execSQL("DROP TABLE IF EXISTS `MyEntity`") } public override fun onCreate(connection: SQLiteConnection) { } public override fun onOpen(connection: SQLiteConnection) { internalInitInvalidationTracker(connection) } public override fun onPreMigrate(connection: SQLiteConnection) { dropFtsSyncTriggers(connection) } public override fun onPostMigrate(connection: SQLiteConnection) { } public override fun onValidateSchema(connection: SQLiteConnection): RoomOpenDelegate.ValidationResult { val _columnsMyEntity: MutableMap = mutableMapOf() _columnsMyEntity.put("pk", TableInfo.Column("pk", "INTEGER", true, 1, null, TableInfo.CREATED_FROM_ENTITY)) val _foreignKeysMyEntity: MutableSet = mutableSetOf() val _indicesMyEntity: MutableSet = mutableSetOf() val _infoMyEntity: TableInfo = TableInfo("MyEntity", _columnsMyEntity, _foreignKeysMyEntity, _indicesMyEntity) val _existingMyEntity: TableInfo = read(connection, "MyEntity") if (!_infoMyEntity.equals(_existingMyEntity)) { return RoomOpenDelegate.ValidationResult(false, """ |MyEntity(MyEntity). | Expected: |""".trimMargin() + _infoMyEntity + """ | | Found: |""".trimMargin() + _existingMyEntity) } return RoomOpenDelegate.ValidationResult(true, null) } } return _openDelegate } protected override fun createInvalidationTracker(): InvalidationTracker { val _shadowTablesMap: MutableMap = mutableMapOf() val _viewTables: MutableMap> = mutableMapOf() return InvalidationTracker(this, _shadowTablesMap, _viewTables, "MyEntity") } public override fun clearAllTables() { super.performClear(false, "MyEntity") } protected override fun getRequiredTypeConverterClasses(): Map, List>> { val _typeConvertersMap: MutableMap, List>> = mutableMapOf() _typeConvertersMap.put(MyDao::class, MyDao_Impl.getRequiredConverters()) return _typeConvertersMap } public override fun getRequiredAutoMigrationSpecClasses(): Set> { val _autoMigrationSpecsSet: MutableSet> = mutableSetOf() return _autoMigrationSpecsSet } public override fun createAutoMigrations(autoMigrationSpecs: Map, AutoMigrationSpec>): List { val _autoMigrations: MutableList = mutableListOf() return _autoMigrations } override fun getDao(): MyDao? = _myDao.value }