123456789101112131415161718192021222324252627282930 |
- // ██████╗ ███████╗███████╗████████╗██████╗ ██████╗ ██╗ ██╗
- // ██╔══██╗██╔════╝██╔════╝╚══██╔══╝██╔══██╗██╔═══██╗╚██╗ ██╔╝
- // ██║ ██║█████╗ ███████╗ ██║ ██████╔╝██║ ██║ ╚████╔╝
- // ██║ ██║██╔══╝ ╚════██║ ██║ ██╔══██╗██║ ██║ ╚██╔╝
- // ██████╔╝███████╗███████║ ██║ ██║ ██║╚██████╔╝ ██║
- // ╚═════╝ ╚══════╝╚══════╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝
- //
- // ███╗ ███╗ █████╗ ███╗ ██╗ █████╗ ██████╗ ███████╗██████╗
- // ████╗ ████║██╔══██╗████╗ ██║██╔══██╗██╔════╝ ██╔════╝██╔══██╗
- // ██╔████╔██║███████║██╔██╗ ██║███████║██║ ███╗█████╗ ██████╔╝
- // ██║╚██╔╝██║██╔══██║██║╚██╗██║██╔══██║██║ ██║██╔══╝ ██╔══██╗
- // ██║ ╚═╝ ██║██║ ██║██║ ╚████║██║ ██║╚██████╔╝███████╗██║ ██║
- // ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═══╝╚═╝ ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═╝
- //
- // Destroys a connection manager.
- var MySQL = require('machinepack-mysql');
- module.exports = function destroyManager(manager, cb) {
- MySQL.destroyManager({
- manager: manager
- })
- .exec(function destroyManagerCb(err) {
- if (err) {
- return cb(new Error('There was an error destroying the connection manager.\n\n' + err.stack));
- }
- return cb();
- });
- };
|