example/

directory
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2026 License: MIT

Directories

Path Synopsis
blogschema
Package blogschema is the schema definition for the blog example: the single source of truth that an author, or an agent, edits.
Package blogschema is the schema definition for the blog example: the single source of truth that an author, or an agent, edits.
Package computed shows how to get a derived value — one the row does not store — out of Postgres through sqlb.
Package computed shows how to get a derived value — one the row does not store — out of Postgres through sqlb.
Package recipes is a collection of small, single-topic examples: one file per aspect of sqlb, each answering a question someone actually has.
Package recipes is a collection of small, single-topic examples: one file per aspect of sqlb, each answering a question someone actually has.
Package withsqlc demonstrates sqlb and sqlc over one schema.
Package withsqlc demonstrates sqlb and sqlc over one schema.
gen command
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.
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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL