Something went wrong. Try again.
Something went wrong. Try again.
Files
·
Copy SHA
·
Copy SHA
·
Copy SHA
·
Copy SHA
·
Copy SHA
·
Copy SHA
·
Copy SHA
·
Copy SHA
·
Copy SHA
- Go 100%
readme.txt
norm
----
norm provides helpers for query construction and row
scanning for golang projects that make use of the
database/sql package:
db, _ := sql.Open("sqlite3", ":memory:")
rows :=
norm.Select("*").
From("users").
Where(norm.Eq("active", true)).
MustQuery(db)
var users []User
_ = norm.ScanAll(rows, &users)
norm uses string builders to construct queries and
reflection to provide a generic struct scanner. handling
migrations and managing field orderings is left to the end
user.