kotlin-exposed-patterns

Provides Kotlin and JetBrains Exposed ORM patterns for DSL and DAO queries, migrations, and more.

1|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/TakMczk/copilot-cli-ecc --skill kotlin-exposed-patterns-takmczk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kotlin-exposed-patterns
Source: https://github.com/TakMczk/copilot-cli-ecc/tree/main/.github/skills/kotlin-exposed-patterns
Command: npx skills add https://github.com/TakMczk/copilot-cli-ecc --skill kotlin-exposed-patterns-takmczk

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides comprehensive patterns and examples for efficiently managing database interactions in Kotlin applications using the JetBrains Exposed ORM, covering everything from basic queries to advanced configurations.

Core Features & Use Cases

  • DSL and DAO: Demonstrates both query styles for flexible database operations.
  • Connection Pooling: Shows how to configure HikariCP for optimal performance.
  • Migrations: Includes examples for setting up database schema evolution with Flyway.
  • Repository Pattern: Illustrates how to abstract data access for better testability and maintainability.
  • JSON Handling: Provides patterns for working with JSON columns.
  • Use Case: Quickly implement secure and efficient database access in your new Kotlin microservice, ensuring proper transaction management and schema evolution.

Quick Start

Use the kotlin-exposed-patterns skill to generate a basic DSL query for finding a user by their ID.

Frequently Asked Questions about kotlin-exposed-patterns

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

FAQPage Schema
How do I write database queries using Kotlin Exposed ORM?

To write database queries using Kotlin Exposed ORM, you can use its DSL for type-safe SQL or the DAO pattern to map database rows to Kotlin objects. This Skill provides implementation patterns for both approaches to ensure flexible data access.

What is the best way to configure HikariCP connection pooling with Kotlin Exposed?

The best way to configure HikariCP connection pooling with Kotlin Exposed is by setting up the HikariDataSource with your JDBC driver details and passing it to the Exposed transaction manager. This ensures optimal connection reuse and database performance.

Can I use Flyway for database schema migrations in a Kotlin Exposed project?

Yes, you can use Flyway for database schema migrations in a Kotlin Exposed project. This Skill includes examples for integrating Flyway to manage database schema evolution, ensuring your database structure stays synchronized with your Kotlin code.

How do I implement the repository pattern for data access in Kotlin Exposed?

To implement the repository pattern in Kotlin Exposed, you abstract database operations behind repository interfaces, hiding the DSL or DAO query logic. This approach improves code testability and maintainability by decoupling database access from business logic.

Does JetBrains Exposed support working with JSON columns in PostgreSQL?

Yes, JetBrains Exposed supports working with JSON columns. This Skill provides specific patterns for handling JSON column data, allowing you to map and query JSON structures directly within your Kotlin database entities and DSL queries.