当我试着做:Sequelize.query,上面写着ERROR: Sequelize.query is not a function。这是我的迁移骨架文件:
up: (queryInterface, Sequelize, migration) => {return Sequelize.query(...); //ERROR: Sequelize.query is not a Func
我最近开始使用Sequelize来获取我的postgresql数据库的模型。为了映射数据库,我使用了sequelize-auto。(dbName,username,password,options)new-init.jssequelizeAutoInstance = new SequelizeAuto(sequelizeInst
在用于螯合的文档中,它们使用如下的导入函数var Project = sequelize.import(__dirname +/ As you might notice, the DataTypes are the very same as explained above return sequelize.define("P