Gabe Kangas ec2b5103e5 Merge branch 'develop' into gek/segment-tracking-persistence | 1 年之前 | |
---|---|---|
.. | ||
README.md | 2 年之前 | |
db.go | 1 年之前 | |
models.go | 1 年之前 | |
query.sql | 1 年之前 | |
query.sql.go | 1 年之前 | |
schema.sql | 1 年之前 |
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.