no-mistakes-postgres-engine 0.109.131

PostgreSQL embedded SQL extraction, schema catalog, and replay-safety analysis for no-mistakes
Documentation
mod compare;
mod embedded;
mod helpers;
mod report;
mod sql;
#[cfg(test)]
mod tests;
mod types;

pub use compare::{baseline_site_identity, compare_baseline};
pub use embedded::{record_embedded_calls, Positions};
pub use helpers::LockHelperNames;
pub use report::build_report;
pub use sql::record_sql_statement;
use sql::sql_helper;
pub use types::*;

#[derive(Default)]
pub struct FileInventory {
    pub sites: Vec<Occurrence>,
    pub gaps: Vec<Gap>,
    pub(crate) parse_failure_lines: std::collections::BTreeSet<usize>,
    pub scan_failure: Option<&'static str>,
    pub native_scan_failed: bool,
}

pub type Gap = (usize, &'static str);
const PARSE_GAP: &str = "SQL could not be parsed completely";
const ROUTINE_GAP: &str = "stored routine body could not be resolved";

#[derive(Clone, PartialEq, Eq, PartialOrd, Ord)]
pub struct Occurrence {
    pub line: usize,
    pub column: usize,
    pub category: String,
    pub fingerprint: String,
}