kotlin-exposed-patterns

Configure Kotlin Exposed ORM data access with HikariCP and Flyway migrations.

1|Updated Jan 30, 2021
One-click install
npx skills add https://github.com/fideguch/my_dotfiles --skill kotlin-exposed-patterns-fideguch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kotlin-exposed-patterns
Source: https://github.com/fideguch/my_dotfiles/tree/main/claude/skills/kotlin-exposed-patterns
Command: npx skills add https://github.com/fideguch/my_dotfiles --skill kotlin-exposed-patterns-fideguch

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Kotlin backends often struggle with clean, maintainable data access when using a relational database. This Skill provides a cohesive set of Exposed ORM patterns, combining DSL queries, DAO usage, and production-grade configurations to reduce boilerplate and improve reliability.

Core Features & Use Cases

  • DSL queries for concise SQL-like expressions and fast iteration.
  • DAO entities and repository pattern for clean domain models and testability.
  • Transaction management and isolation levels for safe concurrent operations.
  • Production-ready configuration with HikariCP connection pooling and Flyway migrations.
  • Practical guidance for JSON columns, migrations, and pagination.

Quick Start

Set up a Kotlin project with Exposed, configure HikariCP, run Flyway migrations, and implement a repository to access your database.

Frequently Asked Questions about kotlin-exposed-patterns

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

FAQPage Schema
How do I manage database transactions and isolation levels with Kotlin Exposed?

Kotlin Exposed manages database transactions and isolation levels by providing transaction blocks that ensure safe concurrent operations. These patterns wrap database queries to maintain data integrity and handle rollback scenarios in production backend services.

What's the best way to structure a Kotlin Exposed repository for clean domain models?

The best way to structure a Kotlin Exposed repository is by using the DAO entity pattern alongside DSL queries. This approach separates SQL logic from domain models, reducing boilerplate and improving testability for robust data access.

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

Kotlin Exposed works with HikariCP connection pooling and Flyway migrations to provide production-ready database configurations. This combination ensures scalable connection management and reliable schema versioning for backend services.

Can I handle JSON columns and database migrations using Kotlin Exposed patterns?

Kotlin Exposed patterns handle JSON columns and database migrations by providing practical guidance and configuration snippets. This allows backend services to store semi-structured data and manage schema changes reliably in production environments.

How do I run scalable SQL queries in a Kotlin coroutine context using Exposed?

Kotlin Exposed runs scalable SQL queries in a coroutine context by providing production-grade data handling patterns. These patterns ensure reliable database access and connection management during concurrent asynchronous backend operations.

When should I choose Kotlin Exposed DSL queries over DAO entities for data access?

Choose Kotlin Exposed DSL queries for concise SQL-like expressions and fast iteration, while DAO entities suit clean domain models and testability. Both patterns reduce boilerplate and improve reliability depending on your specific backend needs.