Skip to content

The bridge between Ktor and JetBrains/Exposed.

License

Notifications You must be signed in to change notification settings

talemke/ktor-database-plugin

Repository files navigation

ktor-database

Features

  • Bridge between Ktor and JetBrains/Exposed
  • Supports suspending transactions
  • Database metrics for specific endpoints
  • Multiple databases

Usage

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)
}

About

The bridge between Ktor and JetBrains/Exposed.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages