db -> mermaid ER code
Project description
make-mermaid-swim-by-db
make mermaid ER code from db (python)
Require
- Python3.10
- sqlalchemy
- mysqlclient
- your (mysql)DB
usage
- install
pip install DB2mermaid
- use
from db2mermaid.db2mermaid import DB2Mermaid
dm = DB2Mermaid()
dm.init_db("user", "pasword", "127.0.0.1", "3306", "db_name")
dm.generate()
then, you will get er.md
Output Sample of Skila
ref: https://downloads.mysql.com/docs/sakila-db.tar.gz
Caution ❗
this package is not full. It cannot generate table relation, can only generate table definition 😢. (And now, only mysql... 🤣)
Future
Make CLI
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file DB2mermaid-1.0.3-py3-none-any.whl.
File metadata
- Download URL: DB2mermaid-1.0.3-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79ca8bc3b3f047e175aeb2b90ae6f5f4c3979c40a825a7a27280cbef07448816
|
|
| MD5 |
823265bf41b56f6cb1d9a022a4213396
|
|
| BLAKE2b-256 |
cae67eff14326ea0b0e195041f79951658539017b0a6f813b007a17544a7c005
|