Sequelize 连接微软云数据库 SQL Azure
2017-09-14 11:03 贺臣 阅读(1085) 评论(0) 编辑 收藏 举报function getConnection(){ var sequelize=new Sequelize("DBName","sa","000000", { host:"************", dialect:"mssql", port: 1433, dialectOptions: { encrypt: true } } ); return sequelize; } exports.getcon=getConnection;
在官方文档上并未给出明确的提示,记录一下! 特别是encrypt 的设置