kotlin-exposed-patterns

Apply JetBrains Exposed ORM patterns for Kotlin database access.

Updated Mar 20, 2026
One-click install
npx skills add https://github.com/KanakMalpani/General-Private-Skills --skill kotlin-exposed-patterns-kanakmalpani
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kotlin-exposed-patterns
Source: https://github.com/KanakMalpani/General-Private-Skills/tree/main/skills/kotlin-exposed-patterns
Command: npx skills add https://github.com/KanakMalpani/General-Private-Skills --skill kotlin-exposed-patterns-kanakmalpani

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

JetBrains Exposed ORM patterns provide structured guidelines to simplify and standardize Kotlin database access, reducing boilerplate and enabling reliable, coroutine-safe data operations.

Core Features & Use Cases

  • Patterns for DSL queries and DAO entity usage with Exposed.
  • Transaction handling with newSuspendedTransaction and isolation examples.
  • Production-ready configuration including HikariCP, Flyway migrations, and repository patterns.

Quick Start

Configure a Kotlin project to adopt Exposed patterns and reference this skill's examples to implement a robust data access layer.

Frequently Asked Questions about kotlin-exposed-patterns

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

FAQPage Schema
How do I handle Kotlin Exposed transactions with coroutines?

Handle Kotlin Exposed transactions with coroutines by using newSuspendedTransaction to ensure coroutine-safe data operations. This approach maintains transaction isolation and prevents blocking threads during database access.

What is the best way to structure Kotlin Exposed database access?

The best way to structure Kotlin Exposed database access is using repository-based data access patterns. This standardizes DSL queries and DAO entity usage, reducing boilerplate and enabling reliable data operations.

How do I configure HikariCP connection pooling with Kotlin Exposed?

Configure HikariCP connection pooling with Kotlin Exposed by applying production-ready database configuration patterns. This setup manages connection lifecycle efficiently for high-throughput Kotlin applications.

Can I use Flyway database migrations with Kotlin Exposed?

Yes, you can use Flyway database migrations with Kotlin Exposed. The patterns demonstrate integrating Flyway to manage schema evolution alongside your Exposed ORM data access layer.

Does Kotlin Exposed support both DSL queries and DAO entities?

Yes, Kotlin Exposed supports both DSL queries and DAO entity usage. The patterns provide structured guidelines for implementing data access using either the type-safe DSL or the entity-based DAO approach.

How do I implement a repository pattern in Kotlin using Exposed ORM?

Implement a repository pattern in Kotlin using Exposed ORM by wrapping DSL queries and DAO operations within repository classes. This abstracts data access logic and standardizes database transactions.