What if in `withTransaction` blocks, it passed the...
# komapper
z
What if in
withTransaction
blocks, it passed the database as the
this
scope?
t
I see little advantage in treating the database as the
this
scope. For example, you cannot take advantage of the
this
scope in the following case:
Copy code
val database = ...

fun main {
  database.withTransaction {
    doSomething()
  }
}

fun doSomething() {
  database.runQuery(...)
}