Oops, You Wrote a Database

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • cornucopia

    Generate type-checked Rust from your PostgreSQL.

    While we're on the subject of ORM's I really like the https://github.com/cornucopia-rs/cornucopia way of doing things.

    Basically write SQL in a file and code generate a function that runs the SQL for you and puts it into a struct (this one is for rust)

    I think there's a library to do the same thing with typescript.

    For me, the best way to talk to the database is with SQL and I don't have to learn an ORMs way of doing it.

  • sqlc

    Generate type-safe code from SQL

    I used sqlc[1] for golang, while it’s very cool and keeps things simple, at the end I switched to gorm as I needed hooks and dynamic queries where annoying to write. I could have build these things myself on top, but that would have been a homegrown orm in the end. But as every orm, gorm also has its problems, pick you poison.

    [1] https://sqlc.dev/

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts