详细文档请看?
GitHub - sequelize/sequelize-auto: Automatically generate bare sequelize models from your database.Automatically generate bare sequelize models from your database. - GitHub - sequelize/sequelize-auto: Automatically generate bare sequelize models from your database.https://github.com/sequelize/sequelize-auto
提前准备
Dialect | Install |
---|
MySQL/MariaDB | npm install sequelize mysql2 | Postgres | npm install sequelize pg pg-hstore | Sqlite | npm install sequelize sqlite3 | MSSQL | npm install sequelize tedious |
?安装sequelize-auto
npm install -g sequelize-auto
使用?
sequelize-auto -h 数据库的IP地址 -d 数据库名 -u 用户名 -x 密码 -p 端口 -t 表名
?例
sequelize-auto -h localhost -d database?-u username -x password -p 3306 -t users
|