Hey folks,
I've just open-sourced
SQLiteNow-KMP - a Kotlin Multiplatform library I built to make working with SQLite in KMP projects way easier and cleaner.
I was originally using SQLDelight (which is great), but I wanted something more focused - specifically:
• Just
SQLite, no cross-database stuff
• Full
type-safety, but still writing
real SQL
•
No IDE plugin required - just a Gradle plugin
• Support for
inline comment annotations in .sql files so I can shape the generated code exactly how I want it
That last point was a big motivation for me - I needed something flexible enough to generate Kotlin code that integrates well into real-world architectures. And yeah, this library is already running in production in one of my projects, so it’s not just a toy.
You'll find:
• Sample project
• Installation steps
• Full docs all over here:
GitHub:
https://github.com/mobiletoly/sqlitenow-kmp
Docs:
https://mobiletoly.github.io/sqlitenow-kmp/
If you’re doing KMP and want a SQL-first approach without the ORM overhead, give it a shot. Would love any feedback or suggestions!