Gabe Kangas 90b70612c9 fix(go): update to resolve linter errors (#3913) | 1 month ago | |
---|---|---|
.. | ||
README.md | 2 years ago | |
db.go | 2 years ago | |
models.go | 2 years ago | |
query.sql | 1 year ago | |
query.sql.go | 1 month ago | |
schema.sql | 2 years ago |
sqlc generates type-safe code from SQL. Here's how it works:
schema.sql
.query.sql
using regular SQL.sqlc generate
to generate Go code with type-safe interfaces to those queries.Only those who need to create or update SQL queries will need to have sqlc
installed on their system. It is not a dependency required to build the codebase.
sudo snap install sqlc
go install github.com/kyleconroy/sqlc/cmd/sqlc@latest
brew install sqlc
Visit https://github.com/kyleconroy/sqlc/releases to download a release for your environment.