3 ms·
Those looking for a more mature solution in this space will probably enjoy SQLc [1]. It was initially developed for Go applications, but over the years it got p
by giovannibonetti 3mo ago
Those looking for a more mature solution in this space will probably enjoy SQLc [1]. It was initially developed for Go applications, but over the years it got pluggins for many other languages, including JavaScript/Typescript.
[1] https://sqlc.dev/ https://sqlc.dev/
- zareith 3mo agoIt may be a good choice for golang, but support for other languages is not as great. I remember creating a PR [1] for some very obvious issues with Typescript generator for better-sqlite3 some two years ago which never received any attention from maintainers. There are bunch of such PRs languishing in obscurity in their repos. [1] https://github.com/sqlc-dev/sqlc-gen-typescript/pull/45 https://github.com/sqlc-dev/sqlc-gen-typescript/pull/45
- allthetime 3mo agoKysely is best choice for TS imo.
- satvikpendem 3mo agoAnd sqlx on the Rust side just for completeness
- ilbert 3mo agoThat's actually the library that inspired me the most for building bun-sqlgen
- EddieRingle 3mo agoAlso SQLDelight for Kotlin: https://sqldelight.github.io/sqldelight/ https://sqldelight.github.io/sqldelight/
- atombender 3mo agoI love sqlc, but I think it's more fair to say it's an SQL code generator for Postgres and Go. Everything else is much less well-supported. You can pretty much forget about trying to use it with ClickHouse or SQLite, for example. It's also a project that seems to be suffering a bit from maintainer burnout. Important bugs aren't being fixed and contributor PRs aren't being merged. It took months to merge support for the new "\restrict" syntax introduced in Postgres 17's SQL schema dump format, for example.