ent
An entity framework for Go (by facebook)
SQLBoiler
Generate a Go ORM tailored to your database schema. (by volatiletech)
Our great sponsors
ent | SQLBoiler | |
---|---|---|
117 | 37 | |
12,862 | 5,551 | |
1.7% | 1.8% | |
9.7 | 8.5 | |
2 days ago | about 1 month ago | |
Go | Go | |
Apache License 2.0 | BSD 3-clause "New" or "Revised" 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.
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
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
SQLBoiler
Posts with mentions or reviews of SQLBoiler.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-01-17.
-
ORM or no ORM (and which ones)?
SQL code generator (aka inspect a database or SQL files to generate data models). You have the option of using something like volatiletech/sqlboiler which looks at the a physical database and generates code based on the schema. Or SQLC which is an amazing and fast project.
-
Using Prisma Migrate with a Dockerized Postgres
After trying a half dozen migration engines for NodeJS, I was pleased to see Prisma and its excellent documentation. As a golang developer I am partial to SQLBoiler and its database-first approach, though perhaps this is a condition of our community where we want all the knobs. Prisma was code-first but still gave me enough control to feel confident.
-
Can anyone help me on how you are using golang with databases in production systems?
I use sqlboiler which generates an ORM from your database, and sql-migrate which is a tool for managing SQL migrations. Although you have to write your migrations in SQL, which IMHO is a plus.
-
Go overtook Ruby and ranked #3 among the most used backend languages for pull requests since 2021
FWIW, the other posts point to https://gobuffalo.io/ and https://github.com/volatiletech/sqlboiler as possibilities.
-
Go and PostgreSQL
My current favourite is: sqlboiler https://github.com/volatiletech/sqlboiler
-
ORM vs SQL Builder in Go
I love SQL Boiler, which generates type-safe code for you from the database schema.
-
Which ORM framework are you using with golang, and why?
SQLBoiler but currently building an evolved version with generics and more flexibility.
SQLBoiler it's fast and generates type-safe compile-able code.
-
Decent examples querying models from Postgres
Take a look at sqlboiler. It's an ORM that generates the database models for you based on the SQL schema.
-
Which framework and ORM should we choose?
I like sqlboiler. Generate a Go ORM based on your DB schema.
What are some alternatives?
When comparing ent and SQLBoiler you can also consider the following projects:
GORM - The fantastic ORM library for Golang, aims to be developer friendly
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
Xorm
upper.io/db - Data access layer for PostgreSQL, CockroachDB, MySQL, SQLite and MongoDB with ORM-like features.
Fiber - ⚡️ Express inspired web framework written in Go