@imcoder0000/erd-import
v0.1.0
Published
Pair your DB to erd-collab.vercel.app and have its schema turn into an ERD diagram in seconds.
Maintainers
Readme
@imcoder0000/erd-import
erd-collab.vercel.app 의 "DB에서 가져오기" 흐름에서 사용하는 CLI 입니다.
브라우저에서 페어링 코드를 받은 뒤, 본인 PC에서 한 줄 실행하면 DB 스키마를 추출해 ERD 로 자동 변환해 보여줍니다. 비밀번호는 본인 PC 밖으로 절대 나가지 않습니다.
사용법
npx @imcoder0000/erd-import <CODE> [connection-string]예시:
# 로컬 DB
npx @imcoder0000/erd-import A7K-9P3 "postgresql://postgres:pw@localhost:5432/mydb"
# 사내 DB (VPN 안에서)
npx @imcoder0000/erd-import A7K-9P3 "postgresql://app:[email protected]/erp"
# connection-string 생략 → stdin 으로 묻습니다
npx @imcoder0000/erd-import A7K-9P3지원
- PostgreSQL (현재)
- MySQL, MSSQL — 추후
Node.js 가 없는 경우
Node 18 이상 필요. 없으면:
brew install node # macOS
# 또는 https://nodejs.org/보안
- connection string 은 본인 PC 의 메모리에서만 사용됩니다.
- CLI 가 추출하는 것은
information_schema메타데이터 뿐 (테이블·컬럼·키 이름과 타입). 실제 row 데이터는 읽지 않습니다. - 추출된 스키마만 erd-collab 백엔드로 업로드됩니다.
License
MIT
