- Bridge between Ktor and JetBrains/Exposed
- Supports suspending transactions
- Database metrics for specific endpoints
- Multiple databases
Step 1. Install the plugin:
// ... (this: Application)
install(Database)
// ...
Step 2. Use within calls:
get("/hello_world") {
val result = call.transaction {
// Fetch data...
}
call.respond(result)
}