Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var async = require('async');
var mysql = require('mysql2');
var url = require('url');
var Words = require('./keywords.js');
var Clients = {};
var InfoClients = {};
var Types = [];
for (var type in mysql.Types) {
Types[mysql.Types[type]] = type;
}
var parse_connstr = function(connstr){
if (connstr.indexOf('---') > 0){
connstr = connstr.split('---')[0];
}
var parsed = url.parse(connstr);
var database = '';
if (parsed.pathname != 'undefined' && parsed.pathname != null){
database = parsed.pathname.substring(1);
}
var user = '';
var async = require('async');
var mysql = require('mysql2');
var url = require('url');
var Words = require('./keywords.js');
var Clients = {};
var InfoClients = {};
var Types = [];
for (var type in mysql.Types) {
Types[mysql.Types[type]] = type;
}
var parse_connstr = function(connstr){
if (connstr.indexOf('---') > 0){
connstr = connstr.split('---')[0];
}
var parsed = url.parse(connstr);
var database = '';
if (parsed.pathname != 'undefined' && parsed.pathname != null){
database = parsed.pathname.substring(1);
}