| import androidx.room.RoomDatabase |
| import androidx.room.util.getColumnIndexOrThrow |
| import androidx.room.util.performSuspending |
| import androidx.sqlite.SQLiteStatement |
| import javax.`annotation`.processing.Generated |
| import kotlin.collections.List |
| import kotlin.reflect.KClass |
| @Generated(value = ["androidx.room.RoomProcessor"]) |
| @Suppress(names = ["UNCHECKED_CAST", "DEPRECATION", "REDUNDANT_PROJECTION", "REMOVAL"]) |
| private val __db: RoomDatabase |
| public override suspend fun getEntity(): MyEntity { |
| val _sql: String = "SELECT * FROM MyEntity" |
| return performSuspending(__db, true, false) { _connection -> |
| val _stmt: SQLiteStatement = _connection.prepare(_sql) |
| val _cursorIndexOfPk: Int = getColumnIndexOrThrow(_stmt, "pk") |
| _tmpPk = _stmt.getLong(_cursorIndexOfPk).toInt() |
| _result = MyEntity(_tmpPk) |
| error("The query result was empty, but expected a single row to return a NON-NULL object of type <MyEntity>.") |
| public companion object { |
| public fun getRequiredConverters(): List<KClass<*>> = emptyList() |