Skip to content

Commit 6865f3a

Browse files
committed
Add section about skip_rows option to README
Add short README section about how to configure sanitizer to skip table rows.
1 parent 02db3b1 commit 6865f3a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ strategy:
8787
first_name: name.first_name
8888
last_name: name.last_name
8989
secret_key: string.empty
90+
access_log: skip_rows
9091
```
9192
9293
In the example configuration above, there are first listed two "addon
@@ -108,3 +109,9 @@ sanitation function consists from two parts separated from each other by
108109
a dot: Python module name and name of the actual function, which will
109110
be prefixed with `sanitize_`, so `name.first_name` would be a function
110111
called `sanitize_first_name` in a file called `name.py`.
112+
113+
Table content can be left out completely from the sanitized dump by
114+
setting table strategy to `skip_rows` (check `access_log` table in the
115+
example config). This will leave out all `INSERT INTO` (MySQL) or `COPY`
116+
(PostgreSQL) statements from the sanitized dump file. `CREATE TABLE`
117+
statements will not be removed.

0 commit comments

Comments
 (0)