kotlin-exposed-patterns

Provide JetBrains Exposed ORM patterns for Kotlin database access.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive guide and practical examples for using JetBrains Exposed ORM in Kotlin, enabling developers to efficiently manage database interactions.

Core Features & Use Cases

  • Database Access Patterns: Demonstrates DSL queries, DAO pattern, repository pattern, and transaction management.
  • Production-Ready Configuration: Includes HikariCP connection pooling and Flyway migrations.
  • Use Case: Setting up a new Kotlin project that requires robust and maintainable database access, from basic CRUD operations to complex queries and migrations.

Quick Start

Use the kotlin-exposed-patterns skill to generate a basic user table definition using Exposed DSL.

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 repository pattern with Kotlin Exposed ORM?

Exposed ORM handles JSON column types by providing specific column definitions for serialization within table schemas. You can store and retrieve structured JSON data directly through the DAO pattern, facilitating complex data mapping in Kotlin.

Does Kotlin Exposed work with HikariCP connection pooling and Flyway migrations?

Yes, Kotlin Exposed integrates seamlessly with HikariCP for production-ready connection pooling and Flyway for database migrations. This combination ensures efficient resource management and controlled schema evolution for robust Kotlin applications.

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

The best way to manage transactions in Kotlin Exposed is using its built-in transaction block. This ensures that your DSL queries and DAO operations execute within a controlled scope, maintaining database consistency and supporting rollback strategies.

How do I test Kotlin Exposed database queries using an in-memory database?

You can test Kotlin Exposed database queries by configuring an in-memory database within your test environment. This strategy allows you to validate table definitions, CRUD operations, and advanced queries quickly without requiring a persistent external database.

How do I perform pagination and batch operations in Kotlin Exposed?

Kotlin Exposed supports pagination through query limiting and offsetting within its DSL framework. Batch operations are facilitated by its core API, enabling efficient bulk data processing and insertion while managing transaction overhead.