Open
Description
We currently generate individual tables. This could in fact be improved with using a SQL library. We could perhaps use SQLModel
to support pydantic
and pandas
.
- Add
SQLModel
models forclone
,traffic
andreferring
- Develop
pydantic
models for each data view/stats - Add
db
module-
configure
function for setting upSQLAlchemy
engine
-
query
function to be able to query SQLite byrepository_name
anddate
-
migrate_csv
that will work withmerged
and individual run CSV files (difference is withskip_rows
settings).
-
- Data Migration:
- Script that can be executed within the Docker container to pull in merged data and parse that over to
sqlite3.db
- Script that can be executed within the Docker container to pull in merged data and parse that over to
- Will need to load the
sqlite3
database at some point when thegts_run_all_repos
script is executed - Be able to transform SQL data to
pandas
DataFrame
to construct figures/charts - Update documentation
- Test migration with a separate repo: astrochun/sqltest-github-stats