Here is a simple script to call backend Fast-API to carry out async query
please run "pip install -r requirements.txt" on your terminal
โ Step1:
Run the command "python async_app.py"
Then the host_url will be shown on the screen
โ Step2:
Copy the host_url and replace endpoint string in the async_main.py
Then run the command "python async_main.py".
In order to call the api to execute sql, one should prepare your own config file where server and database info are correctly set.