kotlin-exposed-patterns

Provide Kotlin Exposed ORM patterns for DSL queries, DAO, transactions, HikariCP, and Flyway.

1|Updated Apr 6, 2026
One-click install
npx skills add https://github.com/zero3041/PREP --skill kotlin-exposed-patterns-zero3041
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kotlin-exposed-patterns
Source: https://github.com/zero3041/PREP/tree/main/.claude/skills/skills/kotlin-exposed-patterns
Command: npx skills add https://github.com/zero3041/PREP --skill kotlin-exposed-patterns-zero3041

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill unit provides comprehensive patterns for database access with Kotlin Exposed ORM, solving common challenges in managing and querying databases effectively.

Core Features & Use Cases

  • ORM Patterns: Offers patterns for DSL queries, DAO pattern, transactions, connection pooling with HikariCP, migrations with Flyway, and repository pattern.
  • Use Case: Suitable for developers looking to implement robust database access layers in Kotlin applications, especially for building maintainable and scalable applications with Kotlin Exposed ORM.

Quick Start

Use the 'kotlin-exposed-patterns' skill to run migrations and set up a Kotlin project with Kotlin Exposed ORM patterns.

Frequently Asked Questions about kotlin-exposed-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement the DAO pattern with Kotlin Exposed ORM?

To implement the DAO pattern with Kotlin Exposed ORM, you structure your database access using entity classes and transaction blocks. This approach abstracts raw DSL queries into maintainable domain objects for complex operations.

What is the best way to manage database transactions in Kotlin Exposed?

The best way to manage database transactions in Kotlin Exposed is by wrapping your DSL queries and DAO operations within explicit transaction blocks. This ensures atomic execution and safe handling of complex database operations.

How do I set up HikariCP connection pooling with Kotlin Exposed?

You set up HikariCP connection pooling with Kotlin Exposed by configuring a HikariDataSource and passing it to the Exposed TransactionManager. This optimizes database access performance and manages connections efficiently.

Can I use Flyway migrations with Kotlin Exposed ORM?

Yes, you can use Flyway migrations with Kotlin Exposed ORM to version your database schema. Running Flyway before initializing Exposed transactions ensures your database structure stays synchronized with your Kotlin application code.

Does Kotlin Exposed support the repository pattern for database access?

Yes, Kotlin Exposed supports the repository pattern for database access by encapsulating DSL queries and DAO operations within dedicated repository classes. This isolates persistence logic and creates a maintainable database access layer.

When should I use DSL queries instead of the DAO pattern in Kotlin Exposed?

Use DSL queries in Kotlin Exposed for lightweight or complex ad-hoc queries, and switch to the DAO pattern when you need rich domain object mapping. Both patterns manage database access but serve different architectural needs.