分类目录归档:Node.js

sequelize关闭命令行的提示

默认情况下,sequelize会出现如下提示:

Executing (default): INSERT INTO `acceptable_answer` (`i

如要关闭,可以使用如下办法:

var sequelize = new Sequelize('', '', '', {
  logging: false
});

附上两个文档链接:

http://docs.sequelizejs.com/en/latest/api/sequelize/
http://itbilu.com/nodejs/npm/V1PExztfb.html#api-findAll