-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sequelize/sequelize-auto可以通过-t 表名指定某一张表,这个要怎么指定 #37
Comments
|
假设我的表名为my_table_a, 我这样输入: |
瞄了下源码: const options = _.assign({}, { 貌似-m并无传递 |
确实没有,我周末解决一下。试试用配置文件的方式? // sequelize-automate.config.js
module.exports = {
dbOptions: {
database: "test",
username: "root",
password: "root",
dialect: "mysql",
host: "localhost",
port: 3306,
logging: false
},
options: {
type: "js",
dir: "models",
tables: ["my_table_a"] // 只生成 my_table_a 的 model
}
}
|
No description provided.
The text was updated successfully, but these errors were encountered: