Skip to main content

Crate pgevolve_core

Crate pgevolve_core 

Source
Expand description

pgevolve-core — the declarative-schema-management engine.

This crate performs no network I/O: live-database access is injected by the caller via a CatalogQuerier implementation, and the crate returns IR, diffs, and plans as data. (It does read source .sql files from disk in parse::parse_directory.) See the workspace docs/superpowers/specs/ for the design.

Re-exports§

pub use crate::parse::normalize_body::BodyError;
pub use crate::parse::normalize_body::NormalizedBody;

Modules§

catalog
Catalog reader: live Postgres pg_catalogcrate::ir::catalog::Catalog.
diff
Pure-function diff over the IR.
error
Top-level error types for pgevolve-core.
identifier
Identifier and qualified-name types.
ir
In-memory representation of a Postgres schema.
lint
Lint engine. Spec §12.
parse
Source-side parser: SQL bytes → IR.
plan
Dependency analyzer and three-phase planner core.
render
IR → SQL emitter.

Constants§

VERSION
Crate version, exposed for embedding in plan manifests.