src/lib/database.js
/**
 * Close all opened connections.
 *
 * Must be called when the process exits.
 */
Close all opened connections.
Must be called when the process exits.
Close all opened connections . Must be called when the process exits .
function close() {
  const promises = [];
  for (var name in connections) {
    promises.push(connections[name].close());
    delete connections[name];
  }
  return Promise.all(promises);
}
function close ( ) { const promises = [ ] ; for ( var name in connections ) { promises . push ( connections [ name ] . close ( ) ) ; delete connections [ name ] ; } return Promise . all ( promises ) ; }
Close all opened connections.
Close all opened connections .