example/

directory
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2026 License: MIT

Directories

Path Synopsis
Package blog is the generated half of the blog example, plus the hand-written code that sits beside it.
Package blog is the generated half of the blog example, plus the hand-written code that sits beside it.
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.
ejected
Package ejected is the exit `sqlb eject` wrote: pgx and the standard library, and nothing else.
Package ejected is the exit `sqlb eject` wrote: pgx and the standard library, and nothing else.
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 evolve is a schema that changed five times, and the machinery that kept the changes honest.
Package evolve is a schema that changed five times, and the machinery that kept the changes honest.
evolveschema
Package evolveschema is the schema of a support desk, and the subject of docs/refactoring-a-database.md.
Package evolveschema is the schema of a support desk, and the subject of docs/refactoring-a-database.md.
libtables
appschema
Package appschema is the host: an application that owns two tables of its own and composes a library's third into the same registry.
Package appschema is the host: an application that owns two tables of its own and composes a library's third into the same registry.
sessionkit
Package sessionkit is a library that ships tables, written the way this repository recommends: it contributes a *declaration* the host composes, and owns no migration sequence of its own.
Package sessionkit is a library that ships tables, written the way this repository recommends: it contributes a *declaration* the host composes, and owns no migration sequence of its own.
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