Documentation
¶
Overview ¶
Package sqlgen turns an app's queries/*.sql files into a Go package of typed functions (ADR 0028). Types come from the schema the app's migrations build, in a scratch SQLite database.
Index ¶
Constants ¶
View Source
const ( Dir = "queries" File = "queries.gen.go" )
Dir is where an app keeps its queries, and File the Go file generated next to them.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
sqlgentest
|
|
|
migrations
Package migrations is the schema the sqlgen tests type queries against.
|
Package migrations is the schema the sqlgen tests type queries against. |
|
queries
Package queries runs the app's SQL queries, typed from its schema (see docs/sql.md).
|
Package queries runs the app's SQL queries, typed from its schema (see docs/sql.md). |
Click to show internal directories.
Click to hide internal directories.