kotlin-exposed-patterns

Simplify Kotlin database access with Exposed ORM DSL queries and DAO patterns.

1|Updated Apr 7, 2026
One-click install
npx skills add https://github.com/Michae2xl/claude-skills-michael --skill kotlin-exposed-patterns-michae2xl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kotlin-exposed-patterns
Source: https://github.com/Michae2xl/claude-skills-michael/tree/main/skills/kotlin-exposed-patterns
Command: npx skills add https://github.com/Michae2xl/claude-skills-michael --skill kotlin-exposed-patterns-michae2xl

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires kotlin, exposed-core, exposed-dao, exposed-jdbc, kotlinx-serialization, org.postgresql:postgresql, com.zaxxer:HikariCP, org.flywaydb:flyway-core, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill simplifies database access in Kotlin applications using Exposed ORM patterns, providing a structured approach to data operations.

Core Features & Use Cases

  • DSL Queries: Execute SQL-like queries with Kotlin's DSL for direct expression.
  • DAO Pattern: Manage entity lifecycle with the Data Access Object pattern.
  • Connection Pooling: Leverage HikariCP for efficient database connection management.
  • Migrations: Use Flyway for versioned SQL migration scripts.
  • Repository Pattern: Encapsulate database logic for better testability and decoupling.
  • Use Case: Streamline database operations in Kotlin applications, reducing boilerplate code and improving maintainability.

Quick Start

Use the 'kotlin-exposed-patterns' skill to create and retrieve users from 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 implement database access in Kotlin using Exposed ORM?

Database access in Kotlin using Exposed ORM is implemented through DSL queries for direct SQL-like expression and the DAO pattern to manage entity lifecycles. This approach reduces boilerplate code and structures data operations for better maintainability.

What's the best way to manage database connections with Kotlin Exposed?

Managing database connections with Kotlin Exposed is best handled by leveraging HikariCP for efficient connection pooling. This integration ensures optimal resource management and performance for your Kotlin application's database interactions.

How do I handle database migrations with Kotlin Exposed?

Database migrations with Kotlin Exposed are handled using Flyway to execute versioned SQL migration scripts. This ensures your database schema evolves predictably alongside your Kotlin application without manual schema synchronization.

Does Kotlin Exposed support the repository pattern for better testability?

Kotlin Exposed supports the repository pattern to encapsulate database logic, achieving better testability and decoupling. By structuring data access this way, you isolate database operations from business logic for more maintainable code.

Can I use DSL queries and DAO patterns together in Kotlin Exposed?

You can use DSL queries and DAO patterns together in Kotlin Exposed to handle different data access needs. DSL queries provide direct SQL-like expression, while the DAO pattern manages entity lifecycles, offering flexibility in database operations.

Do I need PostgreSQL to use Kotlin Exposed patterns?

You do not strictly need PostgreSQL, but this specific implementation includes the PostgreSQL driver as a dependency. Kotlin Exposed itself supports multiple databases, but this setup is configured for PostgreSQL connectivity out of the box.