e.g. if you need auto-transactions: ``` app.interc...
# ktor
o
e.g. if you need auto-transactions:
Copy code
app.intercept {
   val transaction = db.beginTransaction()
   onSuccess { transaction.commit() }
   onFail { transaction.rollback() }
}