jet
sq
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.
jet
-
Open-sourcing SQX, a way to build flexible database models in Go
We are really happy using jet. It lets you write type safe SQL and can read the results into structs- including joins into slice fields.
https://github.com/go-jet/jet
-
The "preferred" way of mapping SQL results in Golang is honestly, subjectively, awful, how to deal with this
Check go-jet https://github.com/go-jet/jet
- Comparing database/sql, GORM, sqlx, and sqlc
-
goscanql - conveniently reading joined SQL data into structs
https://github.com/go-jet/jet does a similar thing.
-
Does Go, has something similar to Laravel eloquent (ORM) ?
Try go-jet, it generates the models based on the schema, provides typed column names.
-
Any mid sized / big open source code base in golang that makes use of SQL DBs?
I have tried doing that, but was unable to get it to work. I posted about it in a discussion here: https://github.com/go-jet/jet/discussions/215
-
Automatic CRUD code generetor?
Jet might be what you're looking for - https://github.com/go-jet/jet
- How to Work with SQL Databases in Go
-
ORM or no ORM (and which ones)?
Use sql builder https://github.com/go-jet/jet.
- GitHub - go-jet/jet: Type safe SQL builder with code generation and automatic query result data mapping
sq
-
We Went All in on Sqlc/Pgx for Postgres and Go
- generate code from running database and use a type-safe query builder (https://github.com/bokwoon95/go-structured-query)
-
JOOQ library equivalent for Go?
https://github.com/bokwoon95/go-structured-query plugging my library, which was inspired by jOOQ. Do check it out and see if it fits your needs.
-
what's your experience writing sql with go?
I'm a big fan of go-structured-query. I quite like the code generation of tables from a database schema, as well as the core struct mapper feature both for reads/writes to the database, which keep the domain entities clean of any struct tags.
-
I don't want to learn your garbage query language
Interesting. I've been looking at https://github.com/bokwoon95/go-structured-query but I'll have to look at reform too, now. Thanks.
What are some alternatives?
sqlc - Generate type-safe code from SQL
SqlKata Query Builder - SQL query builder, written in c#, helps you build complex queries easily, supports SqlServer, MySql, PostgreSql, Oracle, Sqlite and Firebird
goqu - SQL builder and query library for golang
bolt
SQLBoiler - Generate a Go ORM tailored to your database schema.
pgweb - Cross-platform client for PostgreSQL databases
migrate - Database migrations. CLI and Golang library.
InfluxDB - Scalable datastore for metrics, events, and real-time analytics
pgcapture - A scalable Netflix DBLog implementation for PostgreSQL
jaeger - CNCF Jaeger, a Distributed Tracing Platform
go-queryset - 100% type-safe ORM for Go (Golang) with code generation and MySQL, PostgreSQL, Sqlite3, SQL Server support. GORM under the hood.
kingshard - A high-performance MySQL proxy