go-pg VS GORM

Compare go-pg vs GORM and see what are their differences.

go-pg

Golang ORM with focus on PostgreSQL features and performance (by go-pg)

GORM

The fantastic ORM library for Golang, aims to be developer friendly (by go-gorm)
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
go-pg GORM
9 83
5,707 37,813
0.1% 1.2%
4.6 7.6
13 days ago 15 days ago
Go Go
BSD 2-clause "Simplified" License 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.

go-pg

Posts with mentions or reviews of go-pg. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-02-12.

GORM

Posts with mentions or reviews of GORM. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2025-01-03.
  • 🏷️ Sintaxe Alternativa em Go: Uma Leve Introdução às Struct Field Tags
    1 project | dev.to | 24 Mar 2025
  • Top 5 Go Libraries Every Backend Developer Should Know
    6 projects | dev.to | 3 Jan 2025
    2. GORM
  • How to use migrations with Golang
    5 projects | dev.to | 6 Nov 2024
    Go doesn't support migrations natively for that propuso we can use the popular golang-migrate package also if you use an ORM like GORM you can use it for that.
  • Toasty, an Async ORM for Rust
    6 projects | news.ycombinator.com | 23 Oct 2024
    I never understood why people are so stubborn about hating on orm.

    For example I'm familiar with https://gorm.io and it does save me a lot of time and useless boilerplate.

    And guess what, if I ever need to make a complex query, I also happen to know SQL, and I'm just going to make a "raw" query https://gorm.io/docs/sql_builder.html#Raw-SQL and be done with it.

    It's not all that hard.

  • Building a RESTful API with Go Fiber: An Express-Inspired Boilerplate
    13 projects | dev.to | 5 Oct 2024
    SQL database: PostgreSQL Object Relation Mapping using Gorm
  • Store IoT device data
    2 projects | dev.to | 26 Sep 2024
    The previous post demonstrated receiving the raw data and unmarshalling it into a struct that was already annotated with gorm tags. Gorm is a popular ORM for Go. If you are not familiar with it, you can for more information here.
  • GORM, PostgreSQL & Atlas
    4 projects | dev.to | 12 Aug 2024
    GORM is a, quite conveniently named, ORM for GO
  • Scaling Backend to 1M requests with just 2GB ram ⚡️
    2 projects | dev.to | 14 Jun 2024
    Written in GIN framework and uses GORM as ORM.
  • How to handle migrations in Golang
    5 projects | dev.to | 11 Jun 2024
    There are ORMs like gorm that supports some kind of documentation with files, but they mainly focus on converting the database to "things" in the code to be used by the ORM, and not as documentation only/documentation-first.
  • Go ORMs Compared
    5 projects | dev.to | 18 Jan 2024
    GORM is a comprehensive ORM tool in Go, offering a code-first approach which allows defining database schemas using struct tags in Go. It's known for its developer-friendly nature, making it suitable for both beginners and experienced users. GORM supports a variety of SQL databases like MySQL, PostgreSQL, and SQLite. It's designed to be flexible, allowing developers to drop down to raw SQL when necessary. However, it's important to be cautious about its performance implications in large-scale applications.

What are some alternatives?

When comparing go-pg and GORM you can also consider the following projects:

bun - SQL-first Golang ORM

pgx - PostgreSQL driver and toolkit for Go

ent - An entity framework for Go

beego orm

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