goyesql
Parse SQL files with multiple named queries and automatically prepare and scan them into structs. (by knadh)
goqu
SQL builder and query library for golang (by doug-martin)
goyesql | goqu | |
---|---|---|
2 | 23 | |
44 | 2,239 | |
- | - | |
0.0 | 5.6 | |
over 1 year ago | about 1 month ago | |
Go | Go | |
BSD 2-clause "Simplified" License | MIT 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.
goyesql
Posts with mentions or reviews of goyesql.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-09-08.
-
How to deal with long select query in go?
Write it in a sql file then use a library like https://github.com/knadh/goyesql to load them into a struct. I prefer doing this with all my code. The SQL is also auditable.
-
We Went All in on Sqlc/Pgx for Postgres and Go
sqlc looks very interesting and compelling. A similar library I like but haven't had the chance to really use is goyesql: https://github.com/knadh/goyesql
It also allows just writing SQL in a file, reminds me a bit of JDBI in Java.
goqu
Posts with mentions or reviews of goqu.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-10-03.
-
newbie here looking for a framework
For SQL, I'd probably go with goqu http://doug-martin.github.io/goqu/
- Open-sourcing SQX, a way to build flexible database models in Go
-
Best sqlc alternative for dynamic queries?
I use goqu (https://github.com/doug-martin/goqu)
-
ORM or no ORM (and which ones)?
SQL Builders (think squirrel or goqu)
-
Golang Postgres Schema Builder?
I've been looking for a package that allows me to build Postgres DDL statements in Golang. I'm currently using Goqu (https://github.com/doug-martin/goqu) for building statements and it works great, however it does not have support for building schemas. Basic things like creating tables, creating indexes. A great one in JavaScript can be found here: (https://knexjs.org/guide/schema-builder.html#essentials) I have been unable to find anything in Go, does anyone know of any packages like this?
-
GET method to get records from SQL database
Then use something like https://github.com/doug-martin/goqu to build the SQL.
-
ORM in Golang?
Try this
- Best SQL builder.
-
ORM vs SQL Builder in Go
We've been using goqu and it's super nice! although there are a ton of other query builders that could better fit your use-case.
-
escaping text in Go
If the statement is too dynamic to use query parameters I'd ideally use a dynamic query builder rather than concatenating strings. Goqu is a lib like that but I haven't yet used it personally https://github.com/doug-martin/goqu
What are some alternatives?
When comparing goyesql and goqu you can also consider the following projects:
bazel-postgres-sketch
Squirrel - Fluent SQL generation for golang
sqlparser-rs - Extensible SQL Lexer and Parser for Rust
pgx - PostgreSQL driver and toolkit for Go
pggen - Generate type-safe Go for any Postgres query. If Postgres can run the query, pggen can generate code for it.
sqlc - Generate type-safe code from SQL
sqlite
jet - Type safe SQL builder with code generation and automatic query result data mapping
rules_nixpkgs - Rules for importing Nixpkgs packages into Bazel.
chproxy - Open-Source ClickHouse http proxy and load balancer
pike - Generate CRUD gRPC backends from single YAML description.
sqrl - Fluent SQL generation for golang