CLI tool to convert DBML code to editable Draw.io diagram
Project description
ERDio
This is CLI utility to generate editable Draw.io ERD from DBML or updating existing diagram.
Installation
You can install ERDio using pip:
pip install erdio
Quick start
Assuming you have already installed dbt
and dbterd
utility to generate artifacts.
- Use
dbt
to generate docs.
$ dbt docs generate
16:15:02 Running with dbt=1.5.3
16:15:03 Registered adapter: postgres=1.5.3
16:15:03 Found 241 models, 492 tests, 4 snapshots, 0 analyses, 850 macros, 0 operations, 18 seed files, 70 sources, 0 exposures, 0 metrics, 0 groups
16:15:03
16:15:12 Building catalog
16:15:12 Catalog written to ./target/catalog.json
This will create two artifact files contains:
manifest.json
includes all tests and documentationcatalog.json
includes the set of all columns in the database
- Use
dbterd
to generate DBML from dbt artifacts.
$ dbterd run
2023-07-25 16:16:45,768 - dbterd - INFO - Run with dbterd==1.2.4 (main.py:54)
2023-07-25 16:16:46,359 - dbterd - INFO - ./target/output.dbml (base.py:75)
This will create DBML manifest to be used for diagraming.
- Create new Draw.io diagram.
erdio run
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
erdio-0.0.3.tar.gz
(12.4 kB
view details)
Built Distribution
erdio-0.0.3-py3-none-any.whl
(12.7 kB
view details)
File details
Details for the file erdio-0.0.3.tar.gz
.
File metadata
- Download URL: erdio-0.0.3.tar.gz
- Upload date:
- Size: 12.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56a9a45dcd88cf9bc36f78240aa515fea4deb28b7703fd444e6ef85dfae48dfc |
|
MD5 | 04c9a56cc1f9022179f9b98ac5271f02 |
|
BLAKE2b-256 | 054426b91c9bf4cc21b5face6b4c5d3b221019b93b76488c5fe22be0f2b1abac |
File details
Details for the file erdio-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: erdio-0.0.3-py3-none-any.whl
- Upload date:
- Size: 12.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d9f68948e76a6f0648023de12dc9146e85de713333d9ca465992c37f6527caa |
|
MD5 | d1cb6f8564d11e756d987ad5ba48a570 |
|
BLAKE2b-256 | b2b89c3a80be8f161f754633e3ac6dcc6ef8e1312626265a85ee32340e293af7 |