fileconst
Turns text file contents into Go constants (by PennState)
goyesql
Parse SQL files with multiple named queries and automatically prepare and scan them into structs. (by knadh)
fileconst | goyesql | |
---|---|---|
1 | 2 | |
2 | 44 | |
- | - | |
0.0 | 0.0 | |
over 1 year ago | over 1 year ago | |
Go | Go | |
Apache License 2.0 | BSD 2-clause "Simplified" 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.
fileconst
Posts with mentions or reviews of fileconst.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-09-08.
-
We Went All in on Sqlc/Pgx for Postgres and Go
I like SQL queries as strings but I also like my IDE to syntax check them ... Since there are already so many kinds to projects in this thread I'll happily introduce fileconst which provides the best of both worlds - https://github.com/PennState/fileconst.
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.
What are some alternatives?
When comparing fileconst and goyesql you can also consider the following projects:
ccgo
bazel-postgres-sketch
gnorm - A database-first code generator for any language
sqlparser-rs - Extensible SQL Lexer and Parser for Rust
pggen - A database first code generator focused on postgres
pggen - Generate type-safe Go for any Postgres query. If Postgres can run the query, pggen can generate code for it.
pike - Generate CRUD gRPC backends from single YAML description.
sqlite
goqu - SQL builder and query library for golang
go - The Go programming language
rules_nixpkgs - Rules for importing Nixpkgs packages into Bazel.