src/Db/Db.js
/**
	 * Destroy the connection to the database
	 * @return {Db}
	 */
Destroy the connection to the database
@return {Db}
Destroy the connection to the database @return { Db }
destroy() {
		if (this.ssh) {
			this.ssh.end();
		}
		if (this.connection && this.connection.destroy) {
			const idx = Db.instances.indexOf(this);
			if (idx > -1) {
				Db.instances.splice(idx, 1);
			}
			this.connection.destroy();
		}
		return this;
	}
destroy ( ) { if ( this . ssh ) { this . ssh . end ( ) ; } if ( this . connection && this . connection . destroy ) { const idx = Db . instances . indexOf ( this ) ; if ( idx > - 1 ) { Db . instances . splice ( idx , 1 ) ; } this . connection . destroy ( ) ; } return this ; }
Destroy the connection to the database
 @return {Db}
Destroy the connection to the database @return { Db }