Documentation
¶
Overview ¶
Command gen renders the blog schema as the plain `schema.sql` that sqlc reads, which is the mechanical half of the sqlb/sqlc pairing story: one schema declaration, two consumers.
go generate ./example/withsqlc/... regenerate go run ./example/withsqlc/gen -check fail if the committed output is stale
The -check mode is what makes the claim more than prose. If someone edits blogschema and does not regenerate, sqlc is reading a schema the database no longer has, and the gate says so.
Click to show internal directories.
Click to hide internal directories.