<lambda>null1 import androidx.room.RoomDatabase
2 import androidx.room.util.getColumnIndexOrThrow
3 import androidx.room.util.performSuspending
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.reflect.KClass
11 
12 @Generated(value = ["androidx.room.RoomProcessor"])
13 @Suppress(names = ["UNCHECKED_CAST", "DEPRECATION", "REDUNDANT_PROJECTION", "REMOVAL"])
14 public class MyDao_Impl(
15   __db: RoomDatabase,
16 ) : MyDao {
17   private val __db: RoomDatabase
18   init {
19     this.__db = __db
20   }
21 
22   public override suspend fun getEntity(): MyEntity {
23     val _sql: String = "SELECT * FROM MyEntity"
24     return performSuspending(__db, true, false) { _connection ->
25       val _stmt: SQLiteStatement = _connection.prepare(_sql)
26       try {
27         val _columnIndexOfPk: Int = getColumnIndexOrThrow(_stmt, "pk")
28         val _result: MyEntity
29         if (_stmt.step()) {
30           val _tmpPk: Int
31           _tmpPk = _stmt.getLong(_columnIndexOfPk).toInt()
32           _result = MyEntity(_tmpPk)
33         } else {
34           error("The query result was empty, but expected a single row to return a NON-NULL object of type <MyEntity>.")
35         }
36         _result
37       } finally {
38         _stmt.close()
39       }
40     }
41   }
42 
43   public companion object {
44     public fun getRequiredConverters(): List<KClass<*>> = emptyList()
45   }
46 }
47