ozzo-dbx
sqlf
ozzo-dbx | sqlf | |
---|---|---|
1 | 5 | |
623 | 126 | |
0.5% | - | |
0.0 | 3.0 | |
about 1 year ago | 9 months ago | |
Go | Go | |
MIT License | MIT 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.
ozzo-dbx
-
What SQL library are you using?
If you are looking for a query builder only, I also could recommend https://github.com/go-ozzo/ozzo-dbx (it doesn't seem to be maintained but its stable and so far I haven't stumbled on a bug using it for an internal tool)
sqlf
-
What’s your preferred setup to work with SQL DB (without ORM) ?
sqlf for building parameterized queries, yet to settle on a row-to-struct mapper, doing it manually for now
- What SQL library are you using?
-
Looking for some ORM/db access layer suggestions
We use https://github.com/keegancsmith/sqlf at work for building queries, its very enjoyable. It feels like using fmt.Sprintf but everything is properly parameterized
-
Do you think building SQL Queries like strings.Builder{}/fmt.Printf is practical and readable?
Oh. I meant this one https://github.com/keegancsmith/sqlf
-
What are your favorite packages to use?
https://github.com/keegancsmith/sqlf for building parameterized SQL queries
What are some alternatives?
kingshard - A high-performance MySQL proxy
bun - SQL-first Golang ORM
sqrl - Fluent SQL generation for golang
pgx - PostgreSQL driver and toolkit for Go
go-mysql - a powerful mysql toolset with Go
ginkgo - A Modern Testing Framework for Go
pREST - PostgreSQL ➕ REST, low-code, simplify and accelerate development, ⚡ instant, realtime, high-performance on any Postgres application, existing or new
godotenv - A Go port of Ruby's dotenv library (Loads environment variables from .env files)
prometheus - The Prometheus monitoring system and time series database.
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.
gormigrate - Minimalistic database migration helper for Gorm ORM
sqlx - general purpose extensions to golang's database/sql