execute(sql) {
      return new Promise(resolve => {
         this.connection.exec(sql, (err, database) => {
             if (err) {
               console.log('ERROR: ', err);
               reject(err);
            }
            resolve();
         })
      })
   }
/**
   * Run a SQL query against the database and retrieve the status.
   * @param {String} sql SQL query
   * @param {Array} parameters in the SQL query
   * @returns {Promise}
   */
Run a SQL query against the database and retrieve the status.
@param {String} sql SQL query
@param {Array} parameters in the SQL query
@returns {Promise}
Run a SQL query against the database and retrieve the status . @param { String } sql SQL query @param { Array } parameters in the SQL query @returns { Promise }
execute(sql) {
      return new Promise(resolve => {
         this.connection.exec(sql, (err, database) => {
             if (err) {
               console.log('ERROR: ', err);
               reject(err);
            }
            resolve();
         })
      })
   }
execute ( sql ) { return new Promise ( resolve => { this . connection . exec ( sql , ( err , database ) => { if ( err ) { console . log ( 'ERROR: ' , err ) ; reject ( err ) ; } resolve ( ) ; } ) } ) }
Run a SQL query against the database and retrieve the status.
Run a SQL query against the database and retrieve the status .