Projects
View on GitHub
nleof/goyesql
nleof/goyesql has 253 GitHub stars and 10 forks. GitHot measured 0 stars in 24 hours and 0 in 7 days. Last checked 2026-11-15 13:51 UTC. Last push 2023-11-29.
Measured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
About
Go + Yesql
DataREADME.md
Originalgoyesql
Golang + Yesql
Parse a file and associate SQL queries to a map. Useful for separating SQL from code logic.
Installation
$ go get -u github.com/nleof/goyesql
Usage
Create a file containing your SQL queries
-- queries.sql
-- name: list
SELECT *
FROM foo;
-- name: get
SELECT *
FROM foo
WHERE bar = $1;
And just call them in your code!
queries := goyesql.MustParseFile("queries.sql")
// use queries["list"] with sql/database, sqlx ...
Enjoy!