Sqlacodegen
SQLAlchemy에 사용할 테이블(코드)을 자동 생성.
Install
## sqlacodegen
pip install sqlacodegen
## MySQL 사용시
pip install pymysql
## sqlalchemy
pip install sqlalchemy
Examples
sqlacodegen 'mysql+pymysql://username:password@localhost:3307/dbname' > tables.py
sqlacodegen 'mssql+pymssql://username:password@localhost:1433/dbname' > tables.py