LibraryActive

SQLDelight

SQLDelight generates typesafe Kotlin APIs from SQL statements, verifying schema, statements, and migrations at compile-time.

Open source page

Field note

What it does

SQLDelight generates typesafe Kotlin APIs from your SQL statements. It verifies your schema, statements, and migrations at compile-time and provides IDE features like autocomplete and refactoring which make writing and maintaining SQL simple.

Capabilities

Available capabilities

Tags

Tags

Ways to use it

Ways to use it

other

Kotlin / app.cash.sqldelight

sdk

Kotlin / Not filed

other

Kotlin / app.cash.sqldelight

Product features

Product features

Autocomplete

Provides IDE autocomplete features.

Dialect Dependency

Gradle Configuration Changes

SQLDelight 2.0 requires Java 11 for building, and Java 8 for the runtime. The configuration API now uses managed properties and a DomainObjectCollection.

Gradle Integration

Integrates with Gradle build system for automatic code generation.

Gradle Plugin

SQLDelight provides a Gradle plugin for integration.

IntelliJ Plugin

IDE plugin for IntelliJ with autocomplete and refactoring.

Migration Support

Verifies migrations at compile-time.

Migration Verification

Verifies your migrations at compile-time.

Package Name Change

All instances of com.squareup.sqldelight need to be replaced with app.cash.sqldelight.

Refactoring

Provides IDE refactoring features.

Runtime Changes

Primitive types must now be imported into .sq and .sqm files. Some previously supported types now require an adapter.

Schema Verification

Verifies your SQL schema at compile-time.

Statement Verification

Verifies your SQL statements at compile-time.

Typesafe SQL

Generates typesafe Kotlin APIs from SQL queries.