Expand description
SchemaRisk v2 — library crate.
Re-exports every public module so that integration tests and downstream
tools can depend on schema-risk as a library.
Modules§
- ci
- CI/CD integration — GitHub and GitLab PR comment formatters.
- config
- Configuration loader for
schema-risk.yml/schema-risk.yaml. - db
- Live PostgreSQL schema introspection.
- discovery
- Migration directory auto-discovery.
- drift
- Schema drift detection.
- engine
- Risk analysis engine.
- env
- Environment configuration loader.
- error
- graph
- Schema graph – represents tables, columns, and their dependencies.
- guard
- DangerGuard — intercept SQL migrations and gate execution behind explicit confirmation.
- impact
- Query impact detection.
- loader
- Reads migration SQL files from disk.
- locks
- Lock simulation and migration execution timeline.
- output
- Terminal output renderer – pretty-prints analysis results to stdout.
- parser
- Thin wrapper around sqlparser-rs.
- recommendation
- Rule-based fix suggestion engine.
- sarif
- SARIF 2.1.0 output formatter for GitHub Code Scanning integration.
- simulation
- types
- All shared types used across the tool.