jjzjj

LocalhostMysqlServer

全部标签

javascript - sails js : How can I define two MySQL connections to two different databases in a single model in Sails js?

我已经创建了一个模型Employee.js和EmployeeController.js。我在Employee.js文件中定义了两个连接:module.exports={connection:'LocalhostMysqlServer',attributes:{name:{type:"string",required:true,},empnum:{type:"integer",required:true,unique:true},email:{type:"string",required:true,unique:true}},connection:'LocalhostMysqlServe