go-pg
Golang ORM with focus on PostgreSQL features and performance (by go-pg)
ent
An entity framework for Go (by facebook)
Our great sponsors
go-pg | ent | |
---|---|---|
8 | 117 | |
5,318 | 12,862 | |
0.6% | 1.7% | |
5.8 | 9.7 | |
about 1 month ago | 7 days ago | |
Go | Go | |
BSD 2-clause "Simplified" License | Apache License 2.0 |
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.
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 2022-07-02.
-
What SQL library are you using?
I usually work with PostgreSQL and have used https://github.com/go-pg/pg. https://github.com/uptrace/bun is its successor.
- Why all the hate?
-
SQL Query Strategy for complex structs
bun and go-pg both seem to work fairly well for these kind of purposes.
- Go for Backend development
-
How much do you agree completely switching from Java to Go? I have total 9yrs of experience in Java but now I am interested in Go.
gorm.io/gorm`, or `github.com/go-pg/pg` if you need something more feature-rich. I would avoid using `go-kit` and `go-micro` "frameworks" unless you have some special requirement for it. But you can take a look to have an idea of what Go "framework" may look like.
ent
Posts with mentions or reviews of ent.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-01-18.
-
Hello, is there a library similar to graphql-compose from Node.js in Go?
I think you are looking for ent https://github.com/ent/ent which has nice graphql integration.
-
ORM or no ORM (and which ones)?
Check out https://entgo.io/ I like the approach to define an entity schema first and let handle entgo the query part.
-
Best Orm that uses Graphql and Postgres
ent has the nicest integration with graphql (using gqlgen) that I’ve seen with Go, generating almost all the code needed for resolvers and some graphql commons like Node interface and Connection pattern. It also supports PostgreSQL out of the box.
-
IaC Tools That are diff/migration based?
With Atlas, the migration directory can function as the desired state. Thus, you can use Atlas without changing your existing codebase. We use this approach in Ent and it works great for many users. Atlas also supports auth-generating migrations for other migration tools, like Flyway, Liquidbase and various others.
-
orms in go
Ent is a framework we created at Facebook and open-sourced a few years ago, and it has grown a lot since then. You're welcome to give the doc a quick read. Still, a summary is it uses a "schema as code" approach based on code generation with plenty of cool features built-in, such as seamless GraphQL/gRPC/OpenAPI integration, hooks, privacy (authorization support), a templating infra that makes it extensible and much more.
Ent is the migration that uses Atlas as a migration engine. The Ariga team maintains both projects.
- Ent: An Entity Framework for Go
-
DB access declared as go code. Is this a bad way to handle database access?
This is approximately what Ent does.
-
Dapper-like ORM, Mapping
Try https://github.com/ent/ent :D
-
Does Go have a widely used framework, or it's used without anything?
I can recommend https://entgo.io/ , ORM with graph semantics + GraphQL/REST/GRPC API generator
What are some alternatives?
When comparing go-pg and ent you can also consider the following projects:
GORM - The fantastic ORM library for Golang, aims to be developer friendly
SQLBoiler - Generate a Go ORM tailored to your database schema.
sqlc - Generate type-safe code from SQL
sqlx - general purpose extensions to golang's database/sql
Xorm
upper.io/db - Data access layer for PostgreSQL, CockroachDB, MySQL, SQLite and MongoDB with ORM-like features.
bun - Incredibly fast JavaScript runtime, bundler, transpiler and package manager – all in one.
beego orm