A repository for automation scripts to sync OGD logs from MySQL to BigQuery.
Setup:
- Install python3 for your environment
- Install python dependencies: "pip3 install -r requirements.txt"
- Copy
config.py.template
toconfig.py
set server/authentication data and the source & destination db tables - Download the authentication key needed for the BigQuery project. Save it as a .json file in the
config
directory and ensure the file path is defined inconfig.py
usage: <python> main.py <game> --max-days <count>
<python> is your python command.
<game> is the game whose data you wish to move to BigQuery
<count> is the max number of days-worth of data you wish to move
These processes are also set up to run automatically in GitHub actions. Current workflows are configured to run at the following times:
Last keep-alive on 01/01/25