update README

This commit is contained in:
Yam ZhengLim
2022-08-23 16:24:46 +08:00
parent 080494823a
commit cf95ed0683
2 changed files with 26 additions and 1 deletions
+3 -1
View File
@@ -1,3 +1,5 @@
*.csv
__pycache__
testing_sql.txt
testing_sql.txt
EXCHANGE_CONFIG.json
EXCHANGE_EXTRACT_SQL.json
+23
View File
@@ -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
```