-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsample_config.yaml
44 lines (38 loc) · 1.05 KB
/
sample_config.yaml
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
# To avoid repetition, you can define defaults for all jobs in the config file.
defaults:
driver: mysql # This is a global default (all jobs)
# These are host-specific defaults
hosts:
localhost:
label: 'my laptop' # You can give an optional label to a host for better logging
user: root
port: 3420
db: app
jobs:
# Jobs are uniquely identified by a name (below, "users" and "pets" are the jobs)
users:
columns: [id, name, age]
source:
host: localhost
table: users_source
targets:
- host: localhost
table: users_target1
- host: localhost
table: users_target2
pets:
columns: [id, name, species, user_id]
source:
host: localhost
table: pets_source
targets:
- host: localhost
table: pets_target1
# A host can override its defaults
label: 'Target 1'
user: root
port: 3420
db: app
# Can use a DSN string instead of individual fields
- dsn: root@tcp(localhost:3420)/app
table: pets_target2