0
I need to create a Connection Cluster for MS SQL Server.
Here’s an example I performed in Mysql:
var mysql = require('mysql');
var db_cluster_config = require('./dbMysqlUtils').cluster_config;
var mySqlDB = function (config, logConfig) {
this.cluster = mysql.createPoolCluster(db_cluster_config);
this.cluster.add('Cfg', config);
this.cluster.add('Log', logConfig);
this.configs = { cfg: config, log: logConfig };
}
But it does not work for MS SQL Server.
But you’re using the module
mysql
. How it works for theSQL Server
? Here is the link to the modulemssql
.– Sorack
I did mysql, I put it only as an example to get a sense of what I need. Now in the mssql application I’m already using the mssql module, but I can’t mount the cluster.
– Lucas Souza