diff --git a/.gitignore b/.gitignore index 9464862..7fe2c52 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ *.csv __pycache__ -testing_sql.txt \ No newline at end of file +testing_sql.txt +EXCHANGE_CONFIG.json +EXCHANGE_EXTRACT_SQL.json \ No newline at end of file diff --git a/README.md b/README.md index 117c891..9c66f38 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,29 @@ ### How To Run CMD: ###### pip3 install -r requirements.txt +###### Create "EXCHANGE_CONFIG.json" & "EXCHANGE_EXTRACT_SQL.json" in the config file and input the config value +###### Example:- EXCHANGE_CONFIG.json +``` +{ + "host" : "127.0.0.1", + "user" : "admin", + "password" : "admin", + "database" : "classicmodels" +} +``` +###### Example:- EXCHANGE_EXTRACT_SQL.json +``` +{ + "customers" : "SELECT * FROM customers;", + "employees" : "SELECT * FROM employees;", + "offices" : "SELECT * FROM offices;", + "orderdetails" : "SELECT * FROM orderdetails;", + "orders" : "SELECT * FROM orders;", + "payments" : "SELECT * FROM payments;", + "productlines" : "SELECT * FROM productlines;", + "products" : "SELECT * FROM products;" +} +``` ###### python3 main.py ```