wrote this function, so i can have logging in all ...
# exposed
a
wrote this function, so i can have logging in all my db calls. is there a simpler way?
Copy code
fun <T> transactionWithStdOutLogger(db: Database? = null, statement: Transaction.() -> T): T =
    transaction(db) {
        addLogger(StdOutSqlLogger)
        statement()
    }