whatgotdone VS sqlc

Compare whatgotdone vs sqlc and see what are their differences.

Sevalla - Deploy and host your apps and databases, now with $50 credit!
Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!
sevalla.com
featured
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
whatgotdone sqlc
5 185
152 15,842
2.0% 1.5%
7.6 8.9
20 days ago 4 days ago
Go Go
Apache License 2.0 MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

whatgotdone

Posts with mentions or reviews of whatgotdone. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-01-03.
  • What Got Done
    1 project | news.ycombinator.com | 11 Jul 2023
  • How to monetize an open-source project?
    1 project | /r/SideProject | 10 Jan 2022
  • Any free database for new saas
    5 projects | /r/SaaS | 3 Jan 2022
  • Keep a Knowledge Log
    7 projects | news.ycombinator.com | 3 Dec 2021
    I wrote a tool specifically for this, mostly inspired by the Snippets tool at Google. I've been publishing my weekly log in it every week for almost three years:

    https://whatgotdone.com/michael/2021-12-03

    The code is all open source if you're interested in playing around with it:

    https://github.com/mtlynch/whatgotdone

  • Back to basics: Writing an application using Go and PostgreSQL
    15 projects | news.ycombinator.com | 22 Nov 2021
    I had the same objection to SQLite, and then I heard about Litestream, and it won me over.[0]

    Litestream watches your SQLite database and then streams changes to a cloud storage provider (e.g., S3, Backblaze). You get the performance and simplicity of writing SQLite to the local filesystem, but it's syncing to the cloud. And the cool part is that you don't have to change any of your application code to do it - as far as your app is concerned, it's writing to a local SQLite file.

    I wrote a little log uploading utility for my business that uses Litestream, and it's been fantastic.[1] It essentially carries around its data with it, so I can deploy my app to Heroku, blow away the instance and then launch it on fly.io, and it pops up with the exact same data.[2]

    I'm currently in the process of rewriting an open-source AppEngine app to use SQLite + Litestream instead of Google Firestore.[2] It's such a relief to get away from all the complexity of GCP and Firestore and get back to simple SQLite.

    [0] https://litestream.io/

    [1] https://mtlynch.io/litestream/

    [2] https://asciinema.org/a/I2HcYheYayeh7aHj23QSY9Vyf/embed?size...

    [3] https://github.com/mtlynch/whatgotdone/pull/639

sqlc

Posts with mentions or reviews of sqlc. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2025-08-26.
  • Nil Pointer Panic at 3 AM: Choosing the Right Go Database Tool to Save Your Sleep
    2 projects | dev.to | 26 Aug 2025
    SQLC is a modern marvel. It's not an ORM or a library; it's a code generator. You write raw SQL queries in .sql files, and sqlc generates fully type-safe, idiomatic Go code that you can call in your application.
  • I benchmarked nine Go SQLite drivers and here are the results
    6 projects | news.ycombinator.com | 18 Aug 2025
    I've been using the modernc driver for a few years in https://github.com/bbkane/enventory . It's worked perfectly with no drama. Combined with https://sqlc.dev/, I've been very happy writing (small) database applications in Go.
  • SQLx – The Rust SQL Toolkit
    16 projects | news.ycombinator.com | 25 Jul 2025
    Speaking of Go, if you want compile-time type checking like what SQLx offers, the Go ecosystem has an option that is arguably even better at it:

    https://sqlc.dev/

    It has the advantage that it implements the parsing and type checking logic in pure Go, allowing it to import your migrations and infer the schema for type checking. With SQLx you need to have your database engine running at compile time during the proc macro execution with the schema already available. This makes SQLx kind of a non-starter for me, though I understand why nobody wants to do what sqlc does (it involves a lot of duplication that essentially reimplements database features.)

  • Sqlc: Generate type-safe code from SQL
    1 project | news.ycombinator.com | 16 Apr 2025
  • sqlc: Type-Safe Querying in Go
    1 project | dev.to | 16 Mar 2025
  • Goravel: A Go framework inspired by Laravel
    9 projects | news.ycombinator.com | 9 Mar 2025
    What would you use if ORM is to be avoided?

    Perhaps something like https://github.com/sqlc-dev/sqlc ?

  • User authentication in go
    10 projects | dev.to | 30 Jan 2025
    Next, let's write sql queries for retrieving our users & their permissions. Here we will use sqlc for type-safe code generation from our sql queries, and pgx as its backend
  • Rails for Everything
    18 projects | news.ycombinator.com | 1 Jan 2025
  • Show HN: Generate type-safe code for SQL queries in any language
    2 projects | news.ycombinator.com | 27 Nov 2024
    sqlc (https://sqlc.dev/) is amazing, but I needed to use it in several unsupported languages. So instead of creating a plugin for each of those languages, I created a generic one, which is based on go templates.
  • Some Go web dev notes
    16 projects | news.ycombinator.com | 29 Sep 2024
    I really wanted to like sqlc, but it had some major limitations and minor annoyances last time I tried it a few months ago. You might want to go through its list of issues[1] before adopting it.

    Things like no support for dynamic queries[2], one-to-many relationships[3], embedded CTEs[4], composite types[5], etc.

    It might work fine if you only have simple needs, but if you ever want to do something slightly sophisticated, you'll have to fallback to the manual approach. It's partly understandable, though. It cannot realistically support every feature of every DBMS, and it's explicitly not an ORM. But I still decided to stick to the manual approach for everything, instead of wondering whether something is or isn't supported by sqlc.

    [1]: https://github.com/sqlc-dev/sqlc/issues/

    [2]: https://github.com/sqlc-dev/sqlc/issues/3414

    [3]: https://github.com/sqlc-dev/sqlc/issues/3394

    [4]: https://github.com/sqlc-dev/sqlc/issues/3128

    [5]: https://github.com/sqlc-dev/sqlc/issues/2760

What are some alternatives?

When comparing whatgotdone and sqlc you can also consider the following projects:

impl - impl generates method stubs for implementing an interface.

jet - Type safe SQL builder with code generation and automatic query result data mapping

go-mockgen-tool - Go/Golang mock generation for interfaces via code generation

sqlx - general purpose extensions to golang's database/sql

pgxtutorial - Example of how to build a web service using Go, PostgreSQL, and gRPC

xo - Command line tool to generate idiomatic Go code for SQL databases supporting PostgreSQL, MySQL, SQLite, Oracle, and Microsoft SQL Server

Sevalla - Deploy and host your apps and databases, now with $50 credit!
Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!
sevalla.com
featured
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured