Expand description
Redactor module for anonymizing sensitive data in SQL dumps.
This module provides:
- YAML configuration parsing for redaction rules
- Column pattern matching with glob support
- Multiple redaction strategies (null, constant, hash, mask, shuffle, fake, skip)
- Streaming redaction of INSERT and COPY statements
- Config auto-generation from schema analysis
Re-exports§
pub use strategy::StrategyKind;
Modules§
- strategy
- Redaction strategies for anonymizing data.
Structs§
- Column
Matcher - Compiled column matcher for efficient pattern matching
- Redact
Config - Runtime configuration for redaction
- Redact
Config Builder - Builder for RedactConfig
- Redact
Stats - Statistics from redaction operation
- Redact
Yaml Config - YAML configuration file structure
- Redactor
- Main redactor struct
- Rule
- A redaction rule
- Table
Redact Stats - Per-table redaction statistics
- Value
Rewriter - Rewriter for INSERT and COPY statements
Functions§
- generate_
config - Generate a YAML config file by analyzing the input