db/README.md
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.
Run from the repository root:
make sqlc
Or manually:
./bin/sqlc generate
To upgrade sqlc to a specific version, edit tools/go.mod and run:
cd tools && go get github.com/sqlc-dev/sqlc@latest && go mod tidy
Then reinstall:
rm ./bin/sqlc && make sqlc