Skip to main content

diesel_guard/
lib.rs

1pub mod adapters;
2pub mod ast_dump;
3pub mod checks;
4pub mod config;
5pub mod error;
6pub mod output;
7pub mod parser;
8pub mod safety_checker;
9pub mod scripting;
10pub mod violation;
11
12pub use adapters::{MigrationAdapter, MigrationContext, MigrationFile};
13pub use config::{Config, ConfigError};
14pub use safety_checker::SafetyChecker;
15pub use violation::Violation;
16
17/// A list of `(line_number, violation)` pairs produced by a single SQL file.
18///
19/// The line number is 1-indexed and points to the first token of the statement
20/// that triggered the violation.
21pub type ViolationList = Vec<(usize, Violation)>;