-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yaml.example
51 lines (47 loc) · 1.05 KB
/
config.yaml.example
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
firebird:
db1:
host: localhost
port: 3050
database: /path/to/database1.fdb
user: sysdba
password: masterkey
db2:
host: localhost
port: 3050
database: /path/to/database2.fdb
user: sysdba
password: masterkey
mssql:
db1:
server: localhost
database: mydatabase1
user: sa
password: mypassword
trust_server_certificate: true
db2:
server: localhost
database: mydatabase2
user: sa
password: mypassword
frappe_auth:
api_key: your_api_key
api_secret: your_api_secret
tasks:
- endpoint: https://frappe.example.com/api/resource/Doctype
query: SELECT id, name FROM table
mapping:
frappe_field_1: id
frappe_field_2: name
db_type: firebird
db_name: db1
direction: db_to_frappe
key_fields: [frappe_field_1]
- endpoint: https://frappe.example.com/api/resource/OtherDoctype
table_name: my_table
mapping:
frappe_field_a: code
frappe_field_b: description
db_type: mssql
db_name: db2
direction: frappe_to_db
key_fields: [code]