1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// Copyright 2026 Censgate LLC.
// Licensed under the Apache License, Version 2.0. See the LICENSE file
// in the project root for license information.
//! Read-only Postgres PII discovery scanner.
//!
//! Prefer a replica or staging database. Reports list locations and counts
//! only — never sample values.
/// Rule-of-three helper for negative samples.
/// Canonical JSON hashing for [`ScanReport::content_hash`].
/// Layer 0 catalog metadata.
/// Command-line argument types.
/// Pattern-engine wrapper that drops matched text.
/// Scrubbed scanner errors.
/// Human-readable table output.
/// Identifier quoting.
/// Layer 2 JSON path sampling.
/// Discovery layer identifiers (`0`, `0.5`, `1`, `2`).
/// Value-free report types.
/// Read-only session and privilege checks.
/// Layer 1 table sampling.
/// Scan orchestration.
/// Name and type heuristics.
/// Credential redaction for logs and errors.
/// Layer 0.5 planner statistics.
/// Optional HTTP POST of the report JSON.
pub use ScanError;
pub use ;
pub use run_scan;
/// Process exit code when the scan completed with no fail-on match.
pub const EXIT_CLEAN: i32 = 0;
/// Process exit code when `--fail-on` matched at least one finding.
pub const EXIT_FINDINGS: i32 = 1;
/// Process exit code for usage errors, safety refusals, and I/O failures.
pub const EXIT_ERROR: i32 = 2;