kotlin-exposed-patterns

Implement Exposed DSL and DAO queries with coroutine-safe transactions.

Updated Apr 2, 2026
One-click install
npx skills add https://github.com/richardnpaul/everything-vscode-copilot --skill kotlin-exposed-patterns-richardnpaul
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kotlin-exposed-patterns
Source: https://github.com/richardnpaul/everything-vscode-copilot/tree/main/.github/skills/kotlin-exposed-patterns
Command: npx skills add https://github.com/richardnpaul/everything-vscode-copilot --skill kotlin-exposed-patterns-richardnpaul

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

JetBrains Exposed simplifies and standardizes how Kotlin applications access relational databases, reducing boilerplate code and errors in data access.

Core Features & Use Cases

  • DSL and DAO Queries: Write expressive, type-safe queries in Kotlin that map to database operations.
  • Transactional Safety: Use newSuspendedTransaction to ensure atomic operations in coroutines.
  • Production-grade Configuration: Integrates HikariCP for connection pooling and Flyway for migrations.
  • Repository Pattern: Encapsulate data access behind a testable interface for easier testing.

Quick Start

Set up a Kotlin project with Exposed and run a simple CRUD against a test 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 use Exposed ORM for data access in Kotlin coroutines?

Use Exposed ORM for data access in Kotlin by wrapping database operations in newSuspendedTransaction, ensuring coroutine-safe, atomic transactions without blocking threads.

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 through production-grade setup patterns that manage JDBC connections efficiently alongside your DSL or DAO queries.

How do I manage database migrations with Flyway in a Kotlin Exposed project?

Manage database migrations with Flyway in a Kotlin Exposed project by integrating Flyway to handle schema versioning, while Exposed handles type-safe DSL and DAO data access queries.

Can I use the repository pattern with Kotlin Exposed for better testability?

Yes, you can use the repository pattern with Kotlin Exposed to encapsulate data access behind testable interfaces, isolating database logic for easier mocking and stronger testability.

Does Kotlin Exposed support both DSL and DAO query types?

Kotlin Exposed supports both DSL and DAO query types, allowing developers to write expressive, type-safe queries that map directly to relational database operations in production-grade apps.