What problem does it solve?
This Skill eliminates the boilerplate and inconsistency of building custom database access layers in Kotlin applications, providing production-tested patterns for JetBrains Exposed ORM that ensure coroutine safety, maintainability, and scalability.
Core Features & Use Cases
- Dual Query Patterns: Use Exposed's DSL for direct SQL-like type-safe queries or DAO for full entity lifecycle management, depending on your use case.
- Production Configuration: Set up HikariCP connection pooling, Flyway versioned database migrations, and configurable transaction isolation levels for production deployments.
- Testable Architecture: Implement the repository pattern to decouple business logic from data access, enabling seamless testing with in-memory H2 databases.
- Advanced Query Support: Handle complex operations including joins, aggregations, pagination, batch inserts/upserts, and JSONB column storage with kotlinx.serialization.
- Use Case: For example, use this Skill to build a user and order management service that supports paginated user search, order history lookups, and atomic fund transfers with proper transaction safety.
Quick Start
Use the kotlin-exposed-patterns skill to implement a coroutine-safe user repository with pagination and JSONB metadata support for your Kotlin Ktor application.