Tools to generate type safe code models from Postgres schema?

This page summarizes the projects mentioned and recommended in the original post on /r/PostgreSQL

CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. realworld-axum-sqlx

    A Rust implementation of the Realworld demo app spec using Axum and SQLx.

    Here's an example codebase using these features: https://github.com/launchbadge/realworld-axum-sqlx/blob/main/src/http/articles/listing.rs

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. sqlc

    Generate type-safe code from SQL

    https://github.com/kyleconroy/sqlc is pretty cool. Mainly for Go, but other languages are getting more support.

  4. pgocaml

    PG'OCaml provides an interface to PostgreSQL databases for OCaml applications. It uses Camlp4 to extend the OCaml syntax, enabling one to directly embed SQL statements inside the OCaml code.

    I was looking around more and I found this OCaml library: https://github.com/darioteixeira/pgocaml

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

  • copy slice of struct to [][]interface{}

    1 project | /r/golang | 29 Mar 2022
  • Is it a good practice to make a wrapper around database?

    1 project | /r/golang | 13 Jan 2022
  • Style/Pattern for Go Database, DTO& Validation Struct

    1 project | /r/golang | 9 Jan 2022
  • How not to bleed implementation details (transaction) in the HTTP Handler?

    1 project | /r/golang | 6 Jan 2022
  • Unpopular request. I am up to replace Ecto (at least, the query part) with queries generated out of pure SQL. What are my options?

    3 projects | /r/elixir | 24 Dec 2021

Did you know that Go is
the 4th most popular programming language
based on number of references?