A demo on fetching response via graphql from TheGraph for UNI/WETH pair and storing it in MySQL.
main.py
: dump the response of TheGraph(a dict) to MySQL.
pair_graph_query.py
: send graphql query and get response from TheGraph.
db.py
: MySQL db's table structure.
$ git clone https://github.com/ya0002/TheGraph-to-MySQL.git
$ docker compose up -d