摘要:
自动提交 手动提交 Promise.all() 如果数据是数组,要先处理之后,再放到promise.all中,嵌套多层数组,报错将获取不到 sequelize transaction 阅读全文
摘要:
build创建实例 create保存数据到数据库 Account.build({ id: Date.now(), account: '4619test', password: '4619test' }).save().then(account => { console.log(account); } 阅读全文
摘要:
findById:根据id查询表数据 Executing (default): SELECT "id", "account", "password" FROM "account" AS "account" WHERE "account"."id" = 'test1'; findOne:根据条件查询表 阅读全文
摘要:
npm install sequelize npm install pg 阅读全文