sorry if this is a newb question, but I can't seem to track down a fix. I'm trying to add addLogger(StdOutSqlLogger) but I'm getting "unresolved reference" on addLogger because the type of StdOutSqlLogger "CompositeSqlLogger" does not match addLogger's receiver type of SqlLogger.
jean-paul
12/29/2023, 6:14 PM
I have found a fix of sorts, but not exactly what I was hoping. I have a function to wrap queries in a transaction:
Copy code
suspend fun <T> dbQuery(block: suspend () -> T): T =
newSuspendedTransaction(<http://Dispatchers.IO|Dispatchers.IO>) { block()}