sqldelight

Generate type-safe Kotlin APIs from SQL for Kotlin Multiplatform projects.

1|1|Updated Feb 3, 2026
One-click install
npx skills add https://github.com/pddhkt/kotlin-kmp-skills --skill sqldelight-pddhkt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sqldelight
Source: https://github.com/pddhkt/kotlin-kmp-skills/tree/main/plugins/kotlin-kmp/skills/sqldelight
Command: npx skills add https://github.com/pddhkt/kotlin-kmp-skills --skill sqldelight-pddhkt

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

SQLDelight database patterns for Kotlin Multiplatform (KMP) help you manage cross-platform data persistence by generating type-safe, compile-time-verified Kotlin APIs from SQL, simplifying schema, queries, and migrations.

Core Features & Use Cases

  • Generate type-safe Kotlin APIs from SQL across Android, iOS, JVM, and JS.
  • Compile-time verification and Flow support for reactive data streams in UI.
  • Manage migrations and schema evolution with SQLDelight patterns across platforms.

Quick Start

Configure Gradle to enable SQLDelight and point it at your .sq definitions to generate Kotlin APIs.

Frequently Asked Questions about sqldelight

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

FAQPage Schema
How do I generate type-safe Kotlin APIs from SQL in a Kotlin Multiplatform project?

To generate type-safe Kotlin APIs from SQL in a Kotlin Multiplatform project, configure SQLDelight in Gradle and place your SQL schema definitions in properly located .sq files to enable compile-time verification and Kotlin code generation.

Does SQLDelight support compile-time verification and reactive data streams for KMP?

Yes, SQLDelight supports compile-time verification and reactive data streams for KMP by generating type-safe Kotlin APIs from SQL, enabling Flow support for reactive UI data streams across Android, iOS, JVM, and JS.

What is the best way to manage database migrations across Android and iOS using SQLDelight?

The best way to manage database migrations across Android and iOS using SQLDelight is to apply SQLDelight patterns for schema evolution, defining migrations within your cross-platform project setup to ensure consistent local persistent data.

Do I need a specific Gradle setup to use SQLDelight for cross-platform data persistence?

Yes, you need a SQLDelight-enabled Gradle setup to use SQLDelight for cross-platform data persistence, which requires properly placed .sq files and Kotlin Multiplatform targets configured to support schema generation and migrations.

Can I use SQLDelight to handle local data persistence across JVM and JS targets?

Yes, you can use SQLDelight to handle local data persistence across JVM and JS targets, as it generates type-safe Kotlin APIs from SQL for Kotlin Multiplatform projects supporting Android, iOS, JVM, and JS.