Skip to main content

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

output sapmle

mermaid live editor

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


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

If you're not sure about the file name format, learn more about wheel file names.

DB2mermaid-1.0.3-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

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

Hashes for DB2mermaid-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 79ca8bc3b3f047e175aeb2b90ae6f5f4c3979c40a825a7a27280cbef07448816
MD5 823265bf41b56f6cb1d9a022a4213396
BLAKE2b-256 cae67eff14326ea0b0e195041f79951658539017b0a6f813b007a17544a7c005

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page