Skip to content

Commit

Permalink
Merge pull request #7 from SpareCores/DEV-4
Browse files Browse the repository at this point in the history
document all tables and columns
  • Loading branch information
daroczig authored Feb 26, 2024
2 parents 31c5791 + d867e38 commit 0f4c517
Show file tree
Hide file tree
Showing 3 changed files with 314 additions and 156 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/dbdocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
run: sc-crawler schema mysql > schema.sql
- name: Convert SQL schema to DBML
run: sql2dbml --mysql schema.sql -o schema.dbml
- name: Add project description
run: cat project.dbml >> schema.dbml
- name: Update dbdocs project
env:
DBDOCS_TOKEN: ${{ secrets.DBDOCS_TOKEN }}
Expand Down
11 changes: 11 additions & 0 deletions project.dbml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Project DBML {
Note: '''
# Spare Cores (SC) Crawler database schemas

[Spare Cores](https://sparecores.com), a Python-based open-source ecosystem, provides a comprehensive and standardized inventory, along with performance evaluations of available compute resources across public cloud and server providers. The project providers different components to interact with the database schemas defined here:

* Run the SC Crawler, to compile your own database: https://github.com/SpareCores/sc-crawler
* Use the SC Data package to easily grab a copy of the database: https://github.com/SpareCores/sc-data
* Fire up an API using the SC Keeper package on the top of the database: https://github.com/SpareCores/sc-keeper
'''
}
Loading

0 comments on commit 0f4c517

Please sign in to comment.