-
Notifications
You must be signed in to change notification settings - Fork 27
/
demo.yml
65 lines (61 loc) · 1.74 KB
/
demo.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
dumper: Sql
output:
rows_per_statement: 100
file: php://stdout
gzip: false
database:
driver: pdo_mysql
host: 127.0.0.1
user: root
password: ''
dbname: demo
charset: UTF8
pdo_options:
!php/const PDO::MYSQL_ATTR_SSL_CA: './path-to-ca.pem'
!php/const PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT: true
table_white_list:
- foo
- bla
- foo_no_content
- foo_ignored
tables:
foo_ignored:
ignore_table: true
foo_no_content:
ignore_content: true
foo:
order_by: id ASC
limit: 100
converters:
name:
- JohnDoe
street:
- StreetName
website:
- Conditional:
condition: "$website != ''"
if_true: 'http://www.google.de'
# nested conditional
role:
- Conditional:
condition: "$name == 'John Doe'"
# if true, keep the original value
if_false_converters:
- Conditional:
condition: "$role == 'programmer'"
if_true:
- 'super employee'
if_false_converters:
- 'employee'
filters:
- [in, 'id', [1, 2, 3]] # only select rows which id is 1, 2 or 3
- [like, 'name', 'Markus %'] # only select rows which column "name" starts with Markus
foo_custom:
query: >
SELECT *, bar.value1 AS xyz
FROM foo_custom
JOIN bar
WHERE $autoConditions
converters:
name:
- JohnDoe