【发布时间】:2021-05-13 13:47:43
【问题描述】:
我目前正在开发一个带有 node、react 和 express 的网络应用程序。我想尝试使用 sequelize-auto 库来测试它是否真的可以为我生成模型,所以我不需要输入那么多并且将来也可以使用更多。但是,我有一个问题,它说即使它在那里也找不到续集。我什至用它来获取我的数据并将其显示在正在工作的屏幕上。这是我的 package.json:
{
"name": "db-app",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"@reduxjs/toolkit": "^1.5.0",
"auto": "^10.16.0",
"axios": "^0.21.1",
"bootstrap": "^4.6.0",
"cassandra-driver": "^4.6.1",
"cors": "^2.8.5",
"express": "^4.17.1",
"express-validator": "^6.9.2",
"got": "^11.8.1",
"materialize-css": "^1.0.0",
"mssql": "^6.3.1",
"mysql": "^2.18.1",
"mysql2": "^2.2.5",
"mysqljs": "0.0.2-security",
"react": "^17.0.1",
"react-bootstrap": "^1.4.3",
"react-materialize": "^3.9.6",
"react-redux": "^7.2.2",
"react-router": "^5.2.0",
"react-router-dom": "^5.2.0",
"request": "^2.88.2",
"sequelize": "^6.5.0",
"sequelize-auto": "^0.7.10",
"tedious": "^9.2.3",
"tedious-connection-pool": "^1.0.5"
},
"devDependencies": {
"redux-devtools": "^3.7.0"
}
}
还有我的命令:
sequelize-auto -o "./models" -d Information -h localhost -u secret -p 5000 -x secret# -e tedious -t Information
如果需要更多信息,请告诉我。我觉得即使我现在不使用它也可能非常有用。
【问题讨论】:
标签: node.js sequelize.js sequelize-auto