smyrgeorge 2 days ago

Hey Kotlin folks! I’m excited to share the first stable release of sqlx4k — a high-performance, non-blocking database driver for Kotlin Multiplatform.

What it is:

A Kotlin-first, async driver for PostgreSQL, MySQL, and SQLite

Works across JVM and native targets (macOS, Linux, Windows, iOS, Android NDK)

Built for coroutines and modern, scalable apps

You can check it out here: https://github.com/smyrgeorge/sqlx4k

Highlights:

Async I/O with connection pooling

Prepared statements (named and positional)

Row mappers

Transactions + coroutine-friendly TransactionContext

Code generation (CRUD and @Repository with KSP)

Database migrations

PostgreSQL LISTEN/NOTIFY

SQLDelight integration

Supported targets:

JVM (PostgreSQL and MySQL on JVM today)

iosArm64, androidNativeX64/Arm64, macosArm64/X64, linuxArm64/X64, mingwX64

wasmWasi is being explored