Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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;
};