kotlin-exposed-patterns

Implement repository patterns with JetBrains Exposed ORM in Kotlin applications.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires org.jetbrains.exposed:exposed-core, org.jetbrains.exposed:exposed-dao, org.jetbrains.exposed:exposed-jdbc, org.jetbrains.exposed:exposed-kotlin-datetime, org.jetbrains.exposed:exposed-json, org.postgresql:postgresql, com.zaxxer:HikariCP, org.flywaydb:flyway-core, org.flywaydb:flyway-database-postgresql, com.h2database:h2.

What problem does it solve?

This skill addresses the complexity of managing database interactions in Kotlin applications by providing standardized, type-safe patterns for ORM usage, transaction management, and schema migrations.

Core Features & Use Cases

  • Dual Query Styles: Implement both DSL-based SQL queries and DAO-based entity lifecycle management.
  • Production-Ready Infrastructure: Includes configuration for HikariCP connection pooling, Flyway migrations, and repository pattern implementation.
  • Use Case: Use this skill to architect a robust data access layer for a backend service, ensuring atomic operations via coroutine-safe transactions and clean separation of business logic from database schema.

Quick Start

Use the kotlin-exposed-patterns skill to generate a repository implementation for a new database table using the DSL query style.

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

To implement a repository pattern with Kotlin Exposed ORM, use standardized DSL-based SQL queries and DAO-based entity lifecycle management to separate business logic from database schema in a robust data access layer.

What is the best way to manage database transactions safely in Kotlin coroutines?

Managing database transactions safely in Kotlin coroutines requires coroutine-safe transaction handling, ensuring atomic operations within the Exposed ORM while maintaining type-safe SQL construction across concurrent backend services.

Does Kotlin Exposed work with HikariCP for connection pooling?

Yes, Kotlin Exposed works with HikariCP for connection pooling, offering production-ready infrastructure configuration that ensures efficient database connection management for high-throughput Kotlin backend applications.

How do I set up versioned database migrations using Flyway with Kotlin Exposed?

Setting up versioned database migrations using Flyway with Kotlin Exposed involves integrating Flyway core and PostgreSQL database dependencies to apply schema changes sequentially alongside your type-safe ORM definitions.

When should I use DSL queries versus DAO entities in Kotlin Exposed?

Use DSL queries in Kotlin Exposed for type-safe SQL construction when you need flexible data retrieval, and use DAO entities for structured entity-based data management and lifecycle tracking within your repository pattern.

Can I use Kotlin Exposed for type-safe SQL construction with PostgreSQL?

Yes, you can use Kotlin Exposed for type-safe SQL construction with PostgreSQL by including the PostgreSQL JDBC driver dependency, enabling advanced database access patterns and query building capabilities for production systems.