kotlin-exposed-patterns

Implement Kotlin database access with Exposed ORM patterns.

Updated Nov 19, 2025
One-click install
npx skills add https://github.com/Sake-Team/SmartSake --skill kotlin-exposed-patterns-sake-team
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kotlin-exposed-patterns
Source: https://github.com/Sake-Team/SmartSake/tree/main/backup/skills/kotlin-exposed-patterns
Command: npx skills add https://github.com/Sake-Team/SmartSake --skill kotlin-exposed-patterns-sake-team

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, 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 with Exposed ORM, offering patterns for DSL queries, DAO, transactions, connection pooling, and migrations.

Core Features & Use Cases

  • DSL Queries: Write SQL-like expressions for direct database queries.
  • DAO Pattern: Manage entity lifecycle with ease.
  • Transactions: Ensure atomicity and concurrency safety.
  • Connection Pooling: Use HikariCP for efficient connection management.
  • Migrations: Keep database schema in sync with Flyway.
  • Use Case: For a Kotlin application that requires a robust database access layer, this Skill provides a comprehensive set of patterns to handle various database operations efficiently.

Quick Start

Execute the 'setup_db' script to configure the database environment and initialize the schema.

Frequently Asked Questions about kotlin-exposed-patterns

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

FAQPage Schema
How do I set up database access in Kotlin using Exposed ORM?

To set up database access in Kotlin with Exposed ORM, execute the 'setup_db' script to configure the database environment, initialize the schema, and establish HikariCP connection pooling for efficient transaction management.

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

The best way to manage database transactions in Kotlin is using the Exposed ORM transaction patterns, which ensure atomicity and concurrency safety across your database operations within a single robust access layer.

Can I use Flyway for database migrations with Kotlin Exposed?

Yes, you can use Flyway with Kotlin Exposed to keep your database schema in sync. The integration provides automated migration management alongside your DSL queries and DAO entity lifecycle operations.

Does HikariCP connection pooling work with Exposed ORM in Kotlin applications?

HikariCP connection pooling works seamlessly with Exposed ORM in Kotlin applications. It provides efficient connection management for your database transactions, DSL queries, and repository pattern operations.

How do I write SQL-like queries in Kotlin without raw SQL strings?

You can write SQL-like queries in Kotlin without raw SQL strings by using the Exposed ORM DSL query patterns. This allows direct database queries utilizing type-safe Kotlin expressions for efficient data access.