从v4.0.0起,需要明确提供Sequelize方言(入门方法不是CLI)

时间:2019-05-08 10:05:26

标签: node.js sql-server sequelize.js

我正在尝试使用

将ot mssql与Sequelize连接
const Sequelize = require('sequelize');


const sequelize = new Sequelize('database', 'username', 'password', {
  host: 'localhost',
  dialect: 'mssql'
});

const sequelize = new Sequelize('msssql://user:pass@example.com:5432');

并获得Dialect needs to be explicitly supplied as of v4.0.0

我不使用CLI只是入门代码。

瑞格斯

0 个答案:

没有答案