kotlin-exposed-patterns

Provide reusable Exposed ORM patterns for Kotlin data access.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/Maelwalser/claude-config --skill kotlin-exposed-patterns-maelwalser
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kotlin-exposed-patterns
Source: https://github.com/Maelwalser/claude-config/tree/main/skills/kotlin-exposed-patterns
Command: npx skills add https://github.com/Maelwalser/claude-config --skill kotlin-exposed-patterns-maelwalser

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

JetBrains Exposed ORM patterns to streamline Kotlin data access across DSL queries, DAO entities, transactions, and repository usage.

Core Features & Use Cases

  • Provides ready-to-use DSL and DAO patterns for Kotlin with Exposed
  • Demonstrates transactional blocks, JSON support, and Flyway migrations
  • Includes repository-style data access patterns and testing examples

Quick Start

Create a Kotlin project and start integrating Exposed patterns using the provided examples.

Frequently Asked Questions about kotlin-exposed-patterns

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

FAQPage Schema
How do I structure Kotlin Exposed repository patterns for testable data access?

Kotlin Exposed repository patterns abstract DSL queries and DAO entities behind interfaces, enabling mockable data layers. Transaction blocks isolate database operations, ensuring testable repository components without direct database coupling.

Can I use Kotlin coroutines with Exposed transactions in a backend application?

Yes, Kotlin Exposed supports coroutine-friendly transactions. Transaction blocks wrap database operations, allowing async data access while maintaining safe transactional boundaries across PostgreSQL and H2 databases.

What is the best way to handle database migrations with Kotlin Exposed and Flyway?

Database migrations with Kotlin Exposed integrate Flyway for schema versioning. Type-safe schema definitions define table structures, while Flyway manages migration scripts, ensuring robust data access evolution.

Does Kotlin Exposed support JSON columns in PostgreSQL and H2 databases?

Kotlin Exposed provides JSON column support for PostgreSQL and H2. Type-safe schema definitions handle JSON serialization within DSL queries, enabling structured data storage and retrieval.

How do I choose between DSL queries and DAO entities in Kotlin Exposed?

Kotlin Exposed DSL queries offer type-safe SQL construction for complex operations, while DAO entities map database rows to objects. Repository abstractions wrap both approaches, ensuring modular code organization.

When should I not use Kotlin Exposed for data access?

Kotlin Exposed requires understanding DSL and DAO patterns. If your project needs minimal database interaction or uses a different ORM ecosystem, Exposed's type-safe schema definitions and transactional overhead may be unnecessary.