Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

document all tables and columns #7

Merged
merged 3 commits into from
Feb 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading