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.
How to Build REST API using Go Fiber and Gorm ORM
2 projects | dev.to | 1 Jan 2022
Regarding the interaction with the database, I decided to use an ORM to make the whole process simpler and more intuitive and for that reason I decided to use Gorm, which in my opinion is the most popular ORM in the Go universe and has a great range of features.
Database Handling with Golang Gorm (CRUD Handling)
2 projects | dev.to | 27 Dec 2021
What kind of things have you ran with go:generate?
6 projects | reddit.com/r/golang | 16 Dec 2021
have you used something like https://github.com/go-gorm/gorm. My guess is that i would favor sqlc because of the compile-time saftey
Connecting to PostgreSQL using GORM
2 projects | dev.to | 1 Dec 2021
This article builds up on the last part where we built a simple REST API with Go. Now, let's connect our API with a real database! Here, we will use PostgreSQL and GORM to accomplish this.
Is there something you always wanted to see implemented in Go?
11 projects | reddit.com/r/golang | 24 Nov 2021
Have you tried Gorm?
[HELP]One to many in sqlx.
3 projects | reddit.com/r/golang | 22 Nov 2021
Short answer, you can’t, at least not directly, since sqlx isn’t an ORM. I’d check out gorm for something like that.
Migrating from PHP to Go
26 projects | reddit.com/r/golang | 30 Sep 2021
Do you like an ORM like eloquent for Laravel? Then I can recommend GORM https://gorm.io/26 projects | reddit.com/r/golang | 30 Sep 2021
Good ORM library: https://gorm.io/
5chan - The 4chan clone
7 projects | dev.to | 18 Sep 2021
How We Went All In on sqlc/pgx for Postgres + Go
3 projects | reddit.com/r/golang | 9 Sep 2021
Well, if you look at Gorm's prepare_stmt.go you see that it is a thin wrapper around a database/sql.Stmt. And if you look at database/sql.Stmt you see that it's a sort of handle to an abstract entity that it creates in the database.
The proper way to deal with unique constraints using std "database/sql"
1 project | reddit.com/r/golang | 2 Jan 2022
I'm using github.com/jackc/pgx/stdlib to connect on Postgres.
Shared db connection pool in lambdas - do you ever close the connection explicitly?
1 project | reddit.com/r/aws | 20 Dec 2021
Just doing some testing with Golang postgres library pgx's connection pools, and I figure I could set this up outside of the main() function to share the connection pool with concurrent lambda executions. One thing I can't figure out though is I don't think I can safely, and explicitly call a close() on the connection. Is this normal to just let the connection time out if the lambda is not being used? If the connection times out before the lambda shuts off, then how can I re-establish a globally available connection pool? I imagine this is a potential problem for any db that's not accessible over HTTP(s)?
Why does my go.sum list unreferenced packages?
1 project | reddit.com/r/golang | 9 Dec 2021
Someone correct me if I'm wrong here, but I believe Go 1.17 with "Pruned module graphs in go 1.17 modules" fixes this issue, but for pgx, it won't take effect until both your own and their go.mod only support go 1.17 or above.
Is there any Go library to backup and restore PostgreSQL?
1 project | reddit.com/r/golang | 29 Nov 2021
I don't think so, but you should look at https://github.com/jackc/pgx which have low level features maybe for replication ?
Which SQL driver to use with Postgres
7 projects | reddit.com/r/golang | 27 Nov 2021
Back to basics: Writing an application using Go and PostgreSQL
15 projects | news.ycombinator.com | 22 Nov 2021
The way it parses dates using Unix time causes issues when you compare the values returned due to Go setting the location property:
pgx doesn't seem to handle reconnects the same way lib/pg does, but I haven't tested this recently: https://github.com/jackc/pgx/issues/672
[Question] Suggested way to update a database row using gRPC/PostgreSQL (pgx) ?
3 projects | reddit.com/r/golang | 16 Nov 2021
String manipulation could lead to nasty SQL injections and really because you're using pgx there's no need to do that either, see the Conn.SendBatch method, it should allow you to achieve what you're trying to do: execute multiple queries in a transaction and still get their results. (test example)
How do the database drivers communicate with the database? Is it just through some type of protocol at a certain port?
3 projects | reddit.com/r/golang | 9 Nov 2021
Problem trying to insert data received from Colly web scraper lib into DB via pgx library
2 projects | reddit.com/r/golang | 31 Oct 2021
In the process of trying to get better with Go, I have been trying to create a program that will scrape a subreddit and then save some info into a Postgres table. In this case, I decided to use r/frugalmalefashion and save the title and flair of recent posts into the table. I am using Colly to scrape data, and pgx as the database driver.
psql slow intial connection?
1 project | reddit.com/r/PostgreSQL | 27 Oct 2021
Connecting from my golang app via pgx database driver inside Docker (Alpine linux image) on my windows dev system: < 1s -> fast
What are some alternatives?
ent - An entity framework for Go
SQLBoiler - Generate a Go ORM tailored to your database schema.
go-pg - Golang ORM with focus on PostgreSQL features and performance
pq - Pure Go Postgres driver for database/sql
gorp - Go Relational Persistence - an ORM-ish library for Go
xorm - xorm是一个简单而强大的Go语言ORM库，通过它可以使数据库操作非常简便。本库是基于原版xorm的定制增强版本，为xorm提供类似ibatis的配置文件及动态SQL支持，支持AcitveRecord操作
sqlx - general purpose extensions to golang's database/sql
upper.io/db - Data access layer for PostgreSQL, CockroachDB, MySQL, SQLite and MongoDB with ORM-like features.
pop/soda - A Tasty Treat For All Your Database Needs
REL - :gem: Modern ORM for Golang - Testable, Extendable and Crafted Into a Clean and Elegant API