<lambda>null1 import androidx.room.RoomDatabase
2 import androidx.room.util.getColumnIndexOrThrow
3 import androidx.room.util.performBlocking
4 import androidx.sqlite.SQLiteStatement
5 import javax.`annotation`.processing.Generated
6 import kotlin.Int
7 import kotlin.String
8 import kotlin.Suppress
9 import kotlin.collections.List
10 import kotlin.collections.MutableList
11 import kotlin.collections.mutableListOf
12 import kotlin.reflect.KClass
13 
14 @Generated(value = ["androidx.room.RoomProcessor"])
15 @Suppress(names = ["UNCHECKED_CAST", "DEPRECATION", "REDUNDANT_PROJECTION", "REMOVAL"])
16 public class MyDao_Impl(
17   __db: RoomDatabase,
18 ) : MyDao {
19   private val __db: RoomDatabase
20   init {
21     this.__db = __db
22   }
23 
24   public override fun queryOfList(): List<MyEntity> {
25     val _sql: String = "SELECT * FROM MyEntity"
26     return performBlocking(__db, true, false) { _connection ->
27       val _stmt: SQLiteStatement = _connection.prepare(_sql)
28       try {
29         val _columnIndexOfPk: Int = getColumnIndexOrThrow(_stmt, "pk")
30         val _columnIndexOfOther: Int = getColumnIndexOrThrow(_stmt, "other")
31         val _result: MutableList<MyEntity> = mutableListOf()
32         while (_stmt.step()) {
33           val _item: MyEntity
34           val _tmpPk: Int
35           _tmpPk = _stmt.getLong(_columnIndexOfPk).toInt()
36           val _tmpOther: String
37           _tmpOther = _stmt.getText(_columnIndexOfOther)
38           _item = MyEntity(_tmpPk,_tmpOther)
39           _result.add(_item)
40         }
41         _result
42       } finally {
43         _stmt.close()
44       }
45     }
46   }
47 
48   public companion object {
49     public fun getRequiredConverters(): List<KClass<*>> = emptyList()
50   }
51 }
52