sqldelight-persistence

Generate type-safe Kotlin interfaces from .sq files for multiplatform data access.

1|Updated Apr 24, 2026
One-click install
npx skills add https://github.com/dimitriRemoiville/cc-mobile --skill sqldelight-persistence
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sqldelight-persistence
Source: https://github.com/dimitriRemoiville/cc-mobile/tree/main/plugins/cc-mobile-kmm/skills/sqldelight-persistence
Command: npx skills add https://github.com/dimitriRemoiville/cc-mobile --skill sqldelight-persistence

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

SQLDelight provides a single source of truth for data access across Android, iOS, and other platforms by generating Kotlin interfaces from .sq schema files, enabling compile-time checks and consistent queries.

Core Features & Use Cases

  • Platform-agnostic data layer: share typed queries and migrations across Android, iOS, and desktop.
  • Migrations with verification: ensure schema consistency across versions with build-time checks.
  • Flow and coroutine integration: observe and consume query results reactively in a multiplatform app.

Quick Start

Create a shared SQLDelight database in your KMP module, enable migrations verification, and wire platform drivers for Android and iOS.

Frequently Asked Questions about sqldelight-persistence

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

FAQPage Schema
How do I share type-safe SQLite queries across Android and iOS in Kotlin Multiplatform?

You can share type-safe SQLite queries across Android and iOS by using SQLDelight to generate Kotlin interfaces from .sq schema files, providing a single source of truth for cross-platform data access with compile-time checks.

How do I verify database schema consistency during migrations in a Kotlin Multiplatform project?

Verify database schema consistency during migrations by enabling SQLDelight's build-time migration checks, which ensure schema integrity across versions before deploying shared multiplatform data layers.

How do I observe SQLite query results reactively in a Kotlin Multiplatform app?

Observe SQLite query results reactively in a Kotlin Multiplatform app by leveraging SQLDelight's Flow and coroutine integration, which allows you to consume and monitor data changes asynchronously across platforms.

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

Yes, you need a Gradle Kotlin DSL setup with the SQLDelight plugin applied and a multi-platform module structure to wire platform drivers for Android and iOS and generate type-safe interfaces.

What is the best way to maintain a platform-agnostic data layer in Kotlin Multiplatform?

The best way to maintain a platform-agnostic data layer in Kotlin Multiplatform is using SQLDelight to define typed queries and migrations in .sq files, which generates consistent Kotlin interfaces across Android, iOS, and desktop platforms.