This Python script grist_parser.py
provides functionality to convert Grist code view types to DBML language. It's designed to help with representing a document database structure definition as well as visualize it on dbdiagram.io.
Clone this repository using Git:
git clone https://github.com/arnaud-robin/grist-db-parser
To use this script, import the parse_grist_code
function and pass the Grist type as a parameter:
from grist_parser import parse_grist_code, write_dbml_to_file
dbml_code = parse_grist_code("examples/grist_inventory_manager.py")
write_dbml_to_file(dbml_code, "examples/inventory_manager.dbml")
The dbml file can then be uploaded on dbdiagram.io for visualization. The grist template used as example can be found here.
Contributions are welcome! Please fork the repository and submit pull requests with your proposed changes.
This project is licensed under the MIT License - see the LICENSE file for details.