Here is a simple script to call backend Flask-API to execute SQL
please run "pip install -r requirements.txt" on your terminal
โ Step1:
Run the command "python run.py" or "python app.py"
Then the host_url will be shown on the screen
โ Step2:
Copy the host_url and replace host_url string in the main.py
Then run the command "python main.py". The result is shown as below
In order to call the api to execute sql, one should prepare your own config file where server and database info are correctly set.