Kotlin Exposed ORM Patterns

•
31
•

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

Kotlin Exposed Patterns provides comprehensive database development patterns for Kotlin applications using JetBrains Exposed ORM. It guides the implementation of both type-safe SQL DSL queries and entity-based DAO workflows, alongside coroutine-safe transaction management using suspended transactions. The skill includes battle-tested configurations for HikariCP connection pooling, Flyway database migrations, JSON column handling, batch operations, pagination, and repository decoupling to ensure clean, maintainable, and high-performance persistence layers in Kotlin services.

Características Principales

01Coroutine-safe transaction management with newSuspendedTransaction
02Advanced database operations including batch inserts, upserts, and pagination
03Type-safe SQL DSL query construction and DAO entity mapping
04HikariCP connection pool configuration and lifecycle setup
05Flyway database schema migration integration
065 GitHub stars

Casos de Uso

01Building data access and repository layers for Kotlin backend services and Ktor apps
02Configuring robust database connection pooling and schema migrations for production
03Writing complex SQL queries, joins, and aggregations using type-safe Kotlin DSL