forked from deblan/database-anonymizer
add example
This commit is contained in:
parent
c493ad89da
commit
2909e61481
1 changed files with 23 additions and 0 deletions
23
example.yml
Normal file
23
example.yml
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
rules:
|
||||||
|
columns:
|
||||||
|
phone: phone_number
|
||||||
|
generators:
|
||||||
|
aaaaaaaaaaaaa: [id]
|
||||||
|
datas:
|
||||||
|
- table: user
|
||||||
|
query: 'select * from user where email not like "%foo%"'
|
||||||
|
virtual_columns:
|
||||||
|
domain: domain_name
|
||||||
|
columns:
|
||||||
|
confirmation_token: null
|
||||||
|
firstname: first_name
|
||||||
|
lastname: last_name
|
||||||
|
email: "{{ firstname ~ '.' ~ lastname ~ '@' ~ domain }}"
|
||||||
|
- table: company
|
||||||
|
columns:
|
||||||
|
name: name
|
||||||
|
- table: post
|
||||||
|
query: 'select * from post where company_id is not null'
|
||||||
|
delete: true
|
||||||
|
- table: training
|
||||||
|
delete: true
|
||||||
Loading…
Add table
Add a link
Reference in a new issue