Skip to content

arnaud-robin/grist-db-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Grist DB parser

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.

Installation

Clone this repository using Git:

git clone https://github.com/arnaud-robin/grist-db-parser

Usage

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.

Contributing

Contributions are welcome! Please fork the repository and submit pull requests with your proposed changes.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Convert grist code view to DBML language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages