Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var connect = function () {
Firebird.attach(options, function (error, db1) {
db = db1;
if (error) onError(error.message);
else onConnect();
});
}
callback.call(self, err, null);
return;
}
self.done = function() {
var self = this;
self.db.detach();
return self;
};
self.db = db;
self._prepare(callback);
};
if (!pooling) {
database.attach(self.options, fn);
return self;
}
if (pooling !== null) {
pooling.get(fn);
return self;
}
pooling = database.pool(self.options.pooling, self.options);
pooling.get(fn);
return self;
};
self.db = db;
self._prepare(callback);
};
if (!pooling) {
database.attach(self.options, fn);
return self;
}
if (pooling !== null) {
pooling.get(fn);
return self;
}
pooling = database.pool(self.options.pooling, self.options);
pooling.get(fn);
return self;
};