Connect to a database
+Enter your PostgreSQL connection URL in the sidebar and introspect the schema to begin mapping columns.
+ +diff --git a/README.md b/README.md index eca4b99..e5e2f3e 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,8 @@ psql -d localdb < subset.sql - **Zero-config start** -- Introspects schema automatically, no data model file required - **Single command** -- Extract complete data subsets with one CLI invocation - **Safe by default** -- Auto-detects and anonymizes sensitive fields (emails, phones, SSNs, etc.) +- **Compliance profiles** -- Built-in GDPR, HIPAA Safe Harbor, and PCI-DSS profiles with two-phase PII scanning +- **Column mapping UI** -- Local browser UI to visually map columns, apply compliance profiles, and export config - **Multiple output formats** -- SQL, JSON, and CSV - **Streaming** -- Memory-efficient extraction for large datasets (100K+ rows) - **Virtual foreign keys** -- Support for Django GenericForeignKeys and implicit relationships via config @@ -100,6 +102,44 @@ dbslice extract postgres://... --seed "users.id=1" --anonymize dbslice extract postgres://... --seed "users.id=1" --anonymize --redact "audit_logs.ip_address" ``` +### Column Mapping UI + +Map columns visually, apply compliance profiles, and generate a ready-to-use config — all from a local browser UI. + +```bash +dbslice map postgres://localhost/myapp + +# Custom port +dbslice map postgres://localhost/myapp --port 8888 + +# Also works with uvx (no install needed) +uvx dbslice map postgres://localhost/myapp +``` + +
| Map columns to anonymization rules | +Generate and export config | +
![]() |
+![]() |
+
5 steps to generate your anonymization config
+Enter your PostgreSQL URL and click Introspect Schema. Only metadata is read — no row data is accessed.
+Click GDPR, HIPAA, or PCI-DSS to auto-map columns matching the profile's rules. You can apply multiple and override any suggestion.
+For each column, choose:
+When you select Anonymize, pick a provider from the dropdown. Each provider generates a specific type of fake data:
+email fake email
+ name full name
+ phone_number phone
+ ssn SSN
+ ipv4 IP address
+ year_only HIPAA date
+ hipaa_zip3 Safe Harbor ZIP
+ credit_card_number PAN
+ Click Generate Config to create a dbslice.yaml. Download and use:
Ctrl+Z / Cmd+Z to undo · Esc to close modals
+Enter your PostgreSQL connection URL in the sidebar and introspect the schema to begin mapping columns.
+ +