Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
sqld
command
Command sqld is the PostgreSQL toolkit host CLI: it scaffolds projects, drives code generation through plugins, collects the semantic IR, and applies and generates SQL migrations.
|
Command sqld is the PostgreSQL toolkit host CLI: it scaffolds projects, drives code generation through plugins, collects the semantic IR, and applies and generates SQL migrations. |
|
sqld-gen-go
command
Package gogen is the pure-function core of the sqld Go code generator.
|
Package gogen is the pure-function core of the sqld Go code generator. |
|
sqld-gen-bob
module
|
|
|
internal
|
|
|
catalog
Package catalog assembles an IR Catalog from parsed DDL statements.
|
Package catalog assembles an IR Catalog from parsed DDL statements. |
|
core
Package core provides the high-level collection pipeline that turns a Config into a fully-resolved IR Catalog, Query list, and Migration list.
|
Package core provides the high-level collection pipeline that turns a Config into a fully-resolved IR Catalog, Query list, and Migration list. |
|
diff
Package diff compares two IR catalogs and produces an ordered migration Plan whose forward (UpSQL) and inverse (DownSQL) DDL can be rendered.
|
Package diff compares two IR catalogs and produces an ordered migration Plan whose forward (UpSQL) and inverse (DownSQL) DDL can be rendered. |
|
introspect
Package introspect builds an IR Catalog by querying a live PostgreSQL instance through pg_catalog.
|
Package introspect builds an IR Catalog by querying a live PostgreSQL instance through pg_catalog. |
|
lint
Package lint analyzes SQL migrations for destructive or risky changes.
|
Package lint analyzes SQL migrations for destructive or risky changes. |
|
mapper
Package mapper translates libpg_query AST nodes to sqld IR proto types.
|
Package mapper translates libpg_query AST nodes to sqld IR proto types. |
|
nodeid
Package nodeid provides a deterministic, immutable AST node-id path builder.
|
Package nodeid provides a deterministic, immutable AST node-id path builder. |
|
plugin
Package plugin provides host-side utilities for working with sqld plugins.
|
Package plugin provides host-side utilities for working with sqld plugins. |
|
query
Package query parses named DML query files (sqlc-style annotations) and maps each query to a pluginv1.Query IR node.
|
Package query parses named DML query files (sqlc-style annotations) and maps each query to a pluginv1.Query IR node. |
|
relate
Package relate derives a relationship graph from foreign-key metadata in an IR Catalog.
|
Package relate derives a relationship graph from foreign-key metadata in an IR Catalog. |
|
source
internal/source/source.go
|
internal/source/source.go |
|
pkg
|
|
|
gotypes
Package gotypes maps PostgreSQL types to Go types for sqld code generators.
|
Package gotypes maps PostgreSQL types to Go types for sqld code generators. |
|
migrate
Package migrate provides a PostgreSQL migration loader and a Migrator that applies, reverts, and reports the status of versioned SQL migrations.
|
Package migrate provides a PostgreSQL migration loader and a Migrator that applies, reverts, and reports the status of versioned SQL migrations. |
|
sqld
Package sqld is the public API for the sqld engine: parse PostgreSQL sources into the semantic IR (a Catalog) and run code-generation plugins against it.
|
Package sqld is the public API for the sqld engine: parse PostgreSQL sources into the semantic IR (a Catalog) and run code-generation plugins against it. |
Click to show internal directories.
Click to hide internal directories.