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

发表评论

电子邮件地址不会被公开。 必填项已用*标注

This site uses Akismet to reduce spam. Learn how your comment data is processed.