function getConnection(){ var sequelize=new Sequelize("DBName","sa","000000", { host:"************", dialect:"mssql", port: 1433, dialectOptions: { encrypt: true } } ); return sequelize; } exports.getcon=getConnection;
在官方文件上並未給出明確的提示,記錄一下! 特別是encrypt 的設定