Triki
Inherits Reference / Object
Standalone Crystal library for the selective rewriting (obfuscation/anonymization) of SQL dumps to protect user privacy.
Supports MySQL, PostgreSQL, and SQL Server dump formats.
Parse mysqldump outputs when using the -c option, which includes
column names in the INSERT statements.
Constants
Constructors
Creates a new Triki obfuscator with the given configuration.
The configuration is a hash mapping table names to either:
:truncate— remove all rows:keep— pass through unchanged- A
Hash(String, ConfigColumn)— per-column obfuscation rules
Instance methods
Reads an input stream and writes an obfuscated output stream.
input_io — SQL dump to process (e.g. STDIN or File).
output_io — destination for the rewritten dump (e.g. STDOUT or File).
Reads an input stream and writes a configuration scaffold to the output stream.
The scaffold lists every table and column found in the dump with
placeholder :keep rules, making it easy to build an obfuscation config.