Kotlin Exposed ORM Patterns

•
10
•

Guides the implementation of production-grade JetBrains Exposed ORM database access layers using DSL and DAO patterns.

Kotlin Exposed Patterns provides expert architectural guidance and code templates for building robust database layers with JetBrains Exposed in Kotlin. It covers both type-safe SQL DSL expressions and object-oriented DAO approaches, alongside essential production infrastructure such as HikariCP connection pooling, Flyway schema migrations, coroutine-safe suspended transactions (newSuspendedTransaction), batch operations, and clean repository implementations.

Características Principales

01Structures maintainable repository architectures for decoupled data access and testing
02Supports both Exposed type-safe DSL queries and DAO domain entity mapping
0310 GitHub stars
04Provides patterns for joins, aggregations, subqueries, pagination, and JSONB columns
05Ensures non-blocking, coroutine-safe operations using newSuspendedTransaction
06Implements production-ready HikariCP connection pooling and Flyway database migrations

Casos de Uso

01Refactoring legacy JDBC or ORM persistence code into clean, coroutine-friendly Exposed repositories
02Writing complex relational queries, joins, and aggregations using Exposed's type-safe DSL
03Configuring enterprise database access and migration pipelines in Kotlin Ktor or Spring backends