sqlc
6.2#21 in code generatorsFree planFree planLinuxmacOSSelf-hostedWindows
Visit| Fact | sqlc | SQLDelight |
|---|---|---|
| Purpose | sqlc generates fully type-safe, idiomatic code from SQL queries. | SQLDelight generates typesafe Kotlin APIs from SQL statements. |
| Supported databases | The documented language support matrix covers MySQL, PostgreSQL, and SQLite. | Official dialects cover SQLite, MySQL, PostgreSQL, and experimental HSQL/H2, with third-party CockroachDB, DB2, and Oracle dialects listed. |
sqlc suits developers who want generated, type-safe code from SQL queries and work with MySQL, PostgreSQL, or SQLite. It is also relevant to teams that want query checks or schema verification in their workflow.
SQLDelight suits Kotlin developers who want compile-time checks for SQL and database migrations. It may also fit projects using the listed database dialects and Kotlin integrations.