forked from digilist/SnakeDumper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.yml
48 lines (46 loc) · 1.09 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
dumper: Sql
output:
rows_per_statement: 100
file: php://stdout
gzip: false
database:
driver: pdo_mysql
host: localhost
user: root
password: ''
dbname: demo
charset: UTF8
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'
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