Kotlin Exposed ORM Patterns

•
151
•

Implements production-ready database access patterns using JetBrains Exposed ORM with DSL, DAO, and migration support.

This skill provides a comprehensive set of patterns for database interaction in Kotlin applications using the JetBrains Exposed ORM. It covers everything from basic DSL and DAO query styles to advanced configurations like HikariCP connection pooling, Flyway migrations, and the repository pattern. By leveraging these standardized templates, developers can ensure thread-safe transactions, maintainable table definitions, and clean separation between business logic and data persistence, making it ideal for building robust and scalable backend services.

Key Features

01HikariCP connection pool configuration
02Repository pattern boilerplate for testable code
03DSL and DAO query pattern implementation
04Flyway database migration integration
05151 GitHub stars
06Coroutine-safe transaction management

Use Cases

01Implementing automated schema migrations and connection pooling for production deployments
02Refactoring direct SQL queries into maintainable Exposed DSL expressions
03Setting up a new Kotlin backend with type-safe SQL database connectivity