The configuration file needed to run the ETL is a JSON formatted file where each entry contains:
The command-line interface should be instructed to run the ETL by calling the apply function.
Additional parameters can be invoked by providing the --help switch
data-transport comes with a CLI integrated that will
Copy the content and save it to a file "demo-etl.json"
[{
"source": {
"provider": "http",
"url": "https://github.com/codeforamerica/ohana-api/blob/master/data/sample-csv/addresses.csv"
},
"target": [
{"provider": "files", "path": "addresses.csv", "delimiter": ","},
{"provider": "sqlite3", "database": "sample.db3", "table": "addresses"}
]}]
Copy the content and save it to a file "demo-etl.json"
[{
"source": {
"provider": "http",
"plugins":["demo@autoincrement"],
"url": "https://github.com/codeforamerica/ohana-api/blob/master/data/sample-csv/addresses.csv"
},
"target": [
{"provider": "files", "path": "addresses.csv", "delimiter": ","},
{"provider": "sqlite3", "database": "sample.db3", "table": "addresses"}
]}]