|3 months ago||8 days ago|
|MIT License||ISC License|
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.
Migrating from PHP to Go
26 projects | reddit.com/r/golang | 30 Sep 2021
upper.io is a viable alternative to GORM. Just a suggestion.
We Went All in on Sqlc/Pgx for Postgres and Go
31 projects | news.ycombinator.com | 8 Sep 2021
this is the reason why I chose upper/db over pgx/sqlc for my current cockroachdb side project
while upper/db is not as type safe, with proper testing infrastructure, it's the closest to django due to its simplicity/composability/query building support
i'm also excited to see how upper/db grows after generics land in Go later this year
Has anybody moved from Django (python) to any of the Go backend frameworks?
7 projects | reddit.com/r/golang | 10 Jun 2021
So far, I've enjoyed using https://github.com/upper/db for raw query building.
- New advanced, CGo-free SQLite package
New advanced, CGo-free SQLite package
modernc.org/sqlite provides a database/sql driver, but does not (currently) provide an easy way to get at the more advanced functionality of SQLite, like streaming blob I/O or user-defined functions. David Crawshaw has argued that the database/sql API is not a good fit for SQLite, which is how crawshaw.io/sqlite came about.
The repository also includes a go fix-like tool to convert code that uses crawshaw.io/sqlite to use the equivalent zombiezen.com/go/sqlite APIs.
This package gives you direct control over the connections: see OpenConn. However, much like SQLite in C, you shouldn't use a single connection for multiple goroutines. I've bundled up the behavior for performing migrations on startup and then doling out individual connections for each request/goroutine into a Pool type to make this easier.
What are some alternatives?
GORM - The fantastic ORM library for Golang, aims to be developer friendly
ent - An entity framework for Go
SQLBoiler - Generate a Go ORM tailored to your database schema.
xorm - xorm是一个简单而强大的Go语言ORM库，通过它可以使数据库操作非常简便。本库是基于原版xorm的定制增强版本，为xorm提供类似ibatis的配置文件及动态SQL支持，支持AcitveRecord操作
gorp - Go Relational Persistence - an ORM-ish library for Go
go-pg - Golang ORM with focus on PostgreSQL features and performance
go-sqlbuilder - A flexible and powerful SQL string builder library plus a zero-config ORM.
Storm - Simple and powerful toolkit for BoltDB
Zoom - A blazing-fast datastore and querying engine for Go built on Redis.
QBS - QBS stands for Query By Struct. A Go ORM.
lore - Light Object-Relational Environment (LORE) provides a simple and lightweight pseudo-ORM/pseudo-struct-mapping environment for Go