Our great sponsors
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.
ent
-
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
Xorm
We haven't tracked posts mentioning Xorm yet.
Tracking mentions began in Dec 2020.
What are some alternatives?
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
go-pg - Golang ORM with focus on PostgreSQL features and performance
upper.io/db - Data access layer for PostgreSQL, CockroachDB, MySQL, SQLite and MongoDB with ORM-like features.
beego orm
Fiber - ⚡️ Express inspired web framework written in Go
Gin - Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin.
prisma-client-go - Prisma Client Go is an auto-generated and fully type-safe database client