Fern vs sqlc
Fern
buildwithfern.comsqlc
sqlc.devSide by side
| Figure | Fern | sqlc |
|---|---|---|
| Price from | Free | Free |
| Free plan | Yes | Yes |
| Free trial | — | — |
| Open source | Yes | — |
| Web | Yes | — |
| Windows | Yes | Yes |
| macOS | Yes | Yes |
| Linux | Yes | Yes |
| API | Yes | — |
| Self-hosted | Yes | Yes |
| Plans published | 2 | 2 |
| Spec score · Code Generators | 9.0 (#2) | 7.6 (#23) |
| Company | Fern identifies itself as Birch Solutions, Inc., a Postman company, and says it was born in Brooklyn, New York. | The maker says it incorporated Riza in 2023 to work on sqlc full-time. |
| Support | The Enterprise plan includes dedicated support and an uptime SLA. | The maker invites users to contact [email protected] or join the sqlc Discord server with feedback. |
Plans
In their own words
sqlc
sqlc is a free command-line tool that turns SQL queries into type-safe application code. You write queries, run sqlc, and call the generated methods from application code through type-safe interfaces. Its documented database matrix covers MySQL, PostgreSQL, and SQLite. Official generators are available for Go, Kotlin, Python, and TypeScript; Go is stable, while Kotlin, Python, and TypeScript are marked beta for MySQL and PostgreSQL. Plugins allow additional languages, with community plugins listed for C#, F#, Java, PHP, Ruby, Zig, Python, and Rust. The sqlc vet command checks queries against configured rules, and sqlc verify checks whether schema changes break existing queries and generated code. Installation options include prebuilt Linux, macOS, and Windows downloads, package managers, Go, and Docker. sqlc Cloud can create short-lived hosted databases for analysis and linting, with managed databases described as read-only.