Skip to main content

Crate sntl_schema

Crate sntl_schema 

Source
Expand description

Schema analysis and cache library shared by sntl-macros and sntl-cli.

Modules:

  • config: parse sentinel.toml + env overrides.
  • schema: typed model of schema.toml (tables, columns, enums, composites).
  • cache: read/write .sentinel/ directory.
  • normalize: deterministic SQL normalization + hashing.
  • parser: sqlparser-rs wrapper.
  • scope: FROM/JOIN scope resolution and column origins.
  • nullable: nullability inference engine.
  • resolve: high-level orchestrator turning SQL into validated metadata.
  • introspect: online-only helpers for talking to a live PostgreSQL.
  • error: typed errors.

Re-exports§

pub use error::Error;
pub use error::Result;

Modules§

cache
config
error
introspect
Live-PostgreSQL helpers shared by sntl prepare and tests.
normalize
nullable
parser
resolve
schema
scope