npm i schema-to-erd

오픈소스·2022년 9월 25일
0
post-custom-banner

https://velog.io/@youngkiu/DB-SchemaDDL-ER-Diagram 의 미진한 부분과 추가적인 아이디어까지 모두 적용하였습니다.
다음과 같이 간단히 실행할 수 있습니다.

# 예제 다운로드
$ wget http://downloads.mysql.com/docs/sakila-db.tar.gz
$ tar -xzf sakila-db.tar.gz
# 프로그램 실행
$ npx schema-to-erd -s ./sakila-db/sakila-schema.sql
Look at the ERD image - http://www.plantuml.com/plantuml/img/ZLPBhjim3Dph5DeLAF0sNNfHl9iOgaGxGcr9eEJa1KNlNkfhEKZShCAXE2H5Zeny-Y0mREl2s3T-qGfuk03tpWQMaDGe5yZs2k5YbS_01q2muUx0HwguMgsuG_jhWTNpcmuNBioyWE8IxStp2I0m_riR9r2iVD468fbRfAICWGawtBcGmIB_mpZ_dinHAx8dZJwCHgn0O14FzkQK2C3-jXnA8NXVicIGynImMp_8LDe7r3AGAOcU8vsbkIoZj2gMSHThNfQJX6QBzrolefpchCrOh71QsMZ57xkPK7Cy9-U8mk_32tX9t7omAvGPLvIfP2FyP-Am2hti0onpbK5Vuwb4e6fZAlcYWKalQouUhSodWoKI57Y9sWLj3I641OI7yGu2KpOpRs8k3LhKipQqegCRgGevrOQYPKaUB2s1cSCbkTqY9AnqIblsSVkHOkOu1mTI4sUYosnqoxEhZCyLsrtkDVMed9tn8ABN2G9yXNTcsLZQNCbg9HkiIwz9EYKyhLw7djCSLt2cUIVkSUAPLa2HxOCInJGTDffrjaPnnmTPg6T2oyHSgazI9PAf3oCuje50-pSrj6lgQS5qdkjreIzVqk45EVe0aTIw1zQje3slpGCMjXFUtooUD4FqsapBj0f3UyAnw-_GnZ4LO-Lm6CedYdzy_4mVgUPX1RLFK0x9iFUpEjfXg0sbq0HsNnUsTvO2MozTnr6nmz3fBqLMV3XXRTF3K8IUWdEAAlqkwBJB8a2wu2wOVFFMVY-b5bu7Nv8Is7rxL9Dh2ikeyxBgwSMRGhls3yAkXFUwhT6dpHRynf8QysIU1R-HZNs2KV7_oZy0

Look at the ERD image - http://www.plantuml.com/plantuml/img/<encoded>

sakila-schema.png

post-custom-banner

0개의 댓글