Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
pg-sprite
command
Command pg-sprite is an online schema-change engine for PostgreSQL.
|
Command pg-sprite is an online schema-change engine for PostgreSQL. |
|
internal
|
|
|
cli
Package cli defines the pg-sprite command tree (Kong): migrate and status (the optimistic front door), pull, diff, and fmt (the declarative front door), lint and suggest (the offline checker and advisor), and capabilities (the embedded support matrix).
|
Package cli defines the pg-sprite command tree (Kong): migrate and status (the optimistic front door), pull, diff, and fmt (the declarative front door), lint and suggest (the offline checker and advisor), and capabilities (the embedded support matrix). |
|
cmd/gen-capabilities
command
Command gen-capabilities renders the checked-in support matrix from embedded YAML.
|
Command gen-capabilities renders the checked-in support matrix from embedded YAML. |
|
safety
Package safety holds repository-wide tests that pin SAFETY.md's contracts to the code, where a single package cannot legitimately speak for the whole repository.
|
Package safety holds repository-wide tests that pin SAFETY.md's contracts to the code, where a single package cannot legitimately speak for the whole repository. |
|
testutil
Package testutil is the integration-test harness: a real PostgreSQL in a container plus per-test throwaway schemas.
|
Package testutil is the integration-test harness: a real PostgreSQL in a container plus per-test throwaway schemas. |
|
pkg
|
|
|
applier
Package applier defines decoded-change application contracts enforcing CO-4, CO-5, CO-6, and LK-3.
|
Package applier defines decoded-change application contracts enforcing CO-4, CO-5, CO-6, and LK-3. |
|
capabilities
Package capabilities provides the embedded, validated support matrix and its Markdown renderer.
|
Package capabilities provides the embedded, validated support matrix and its Markdown renderer. |
|
checkpoint
Package checkpoint defines durable resume contracts enforcing ST-1 and ST-2.
|
Package checkpoint defines durable resume contracts enforcing ST-1 and ST-2. |
|
checksum
Package checksum defines shadow-fidelity contracts enforcing CO-1, CO-2, and CO-3.
|
Package checksum defines shadow-fidelity contracts enforcing CO-1, CO-2, and CO-3. |
|
copier
Package copier defines chunked shadow-table copy contracts enforcing CO-4 and LK-3.
|
Package copier defines chunked shadow-table copy contracts enforcing CO-4 and LK-3. |
|
dbconn
Package dbconn is the engine's database connectivity layer: pgx pool construction with safe session defaults (lock_timeout, statement_timeout), RDS/Aurora TLS, bounded retries for transient errors, and a helper to terminate backends blocking a session's lock acquisition.
|
Package dbconn is the engine's database connectivity layer: pgx pool construction with safe session defaults (lock_timeout, statement_timeout), RDS/Aurora TLS, bounded retries for transient errors, and a helper to terminate backends blocking a session's lock acquisition. |
|
decode
Package decode defines logical-decoding contracts enforcing ST-4 and CO-4.
|
Package decode defines logical-decoding contracts enforcing ST-4 and CO-4. |
|
diffplan
Package diffplan is the declarative front door as a library: a parsed desired-state schema in, the routed convergence plan out.
|
Package diffplan is the declarative front door as a library: a parsed desired-state schema in, the routed convergence plan out. |
|
executor
Package executor runs schema changes against the database.
|
Package executor runs schema changes against the database. |
|
lint
Package lint checks DDL offline for patterns the engine would refuse, rewrite, or gate.
|
Package lint checks DDL offline for patterns the engine would refuse, rewrite, or gate. |
|
migrate
Package migrate is the imperative front door as a library: one parsed statement in — gate, resolve, introspect, classify, route, execute — and exactly one verdict out.
|
Package migrate is the imperative front door as a library: one parsed statement in — gate, resolve, introspect, classify, route, execute — and exactly one verdict out. |
|
plan
Package plan defines the machine-readable dry-run plan report: the stable JSON contract an operator or orchestrator consumes to decide whether and how a change would execute.
|
Package plan defines the machine-readable dry-run plan report: the stable JSON contract an operator or orchestrator consumes to decide whether and how a change would execute. |
|
planner
Package planner classifies schema-change statements: for each operation it decides whether PostgreSQL can run it online natively (possibly via a safer idiom it suggests), whether it needs the engine's copy-and-swap path, or whether it is refused.
|
Package planner classifies schema-change statements: for each operation it decides whether PostgreSQL can run it online natively (possibly via a safer idiom it suggests), whether it needs the engine's copy-and-swap path, or whether it is refused. |
|
preflight
Package preflight verifies preconditions before the engine writes anything (invariant ST-6).
|
Package preflight verifies preconditions before the engine writes anything (invariant ST-6). |
|
progress
Package progress defines the strategy-wide, machine-readable execution progress contract.
|
Package progress defines the strategy-wide, machine-readable execution progress contract. |
|
router
Package router assigns every classified statement to an execution backend.
|
Package router assigns every classified statement to an execution backend. |
|
schemachange
Package schemachange orchestrates copy-and-swap schema changes while enforcing LK-2, LK-4, and ST-5.
|
Package schemachange orchestrates copy-and-swap schema changes while enforcing LK-2, LK-4, and ST-5. |
|
schemadiff
Package schemadiff builds the canonical table model both front-ends share and diffs two models into an ordered statement list.
|
Package schemadiff builds the canonical table model both front-ends share and diffs two models into an ordered statement list. |
|
statement
Package statement parses SQL through the real PostgreSQL grammar (wasilibs/go-pgquery, Wasm libpg_query) and reports the facts the engine's front door needs.
|
Package statement parses SQL through the real PostgreSQL grammar (wasilibs/go-pgquery, Wasm libpg_query) and reports the facts the engine's front door needs. |
|
suggest
Package suggest is the advisory surface: it maps DDL that is risky as written to the safer native form the engine would run instead, offline and without executing anything.
|
Package suggest is the advisory surface: it maps DDL that is risky as written to the safer native form the engine would run instead, offline and without executing anything. |
|
verdict
Package verdict is the engine's structured outcome contract: every migrate invocation ends in exactly one verdict — executed natively, refused with a typed reason and, where one exists, a safer native idiom, or failed during execution with the executor's stable outcome code and a disclosure of what committed before the failure.
|
Package verdict is the engine's structured outcome contract: every migrate invocation ends in exactly one verdict — executed natively, refused with a typed reason and, where one exists, a safer native idiom, or failed during execution with the executor's stable outcome code and a disclosure of what committed before the failure. |
Click to show internal directories.
Click to hide internal directories.