zt
02/14/2023, 4:30 AMwithTransaction
blocks, it passed the database as the this
scope?Toshihiro Nakamura
02/15/2023, 11:29 PMthis
scope. For example, you cannot take advantage of the this
scope in the following case:
val database = ...
fun main {
database.withTransaction {
doSomething()
}
}
fun doSomething() {
database.runQuery(...)
}