-
Notifications
You must be signed in to change notification settings - Fork 3
Convert
Dominik Hladík edited this page Nov 23, 2020
·
7 revisions
This command is (or i hope it will be) probably the main feature of this command line tool. I am planning to add more and more fetures in this command.
- config - path to config file in yaml format
Config file looks should like here at this moment.
input:
version: fifa21
folder: 'C:\Users\username\Desktop\fifa21' # folder containing tables exported by db master
actions: # actions will be called in this order
- type: extend-contract # extend loans and contracts which are invalid
- type: append-default # appends default values to new fields
output:
version: fifa16
folder: 'C:\Users\username\Desktop\fifa16'
format: csv # csv or jsonIt means load files in folder "C:\Users\username\Desktop\fifa21" and extend contracts if expired and then convert them into "fifa16" structure and if needed append default values. "If needed" means new column or invalid range. Then save new files into "C:\Users\username\Desktop\fifa16".
I recommend to use some yaml linter before you try to use.
Just type path to config file.
dbmaster convert --config 'C:\Users\username\Desktop\config.yml'