all(sql, parameters) {
      return new Promise((resolve, reject) => {
         this.connection.all(sql, parameters, (err, rows) => {
            if (err) {
               reject(err);
            }
            resolve(rows);
         })
      })
   }
/**
   * Run a SQL query against the database and retrieve all the rows.
   * @param {String} sql SQL query
   * @param {Array} parameters in the SQL query
   * @returns {Promise}
   */
Run a SQL query against the database and retrieve all the rows.
@param {String} sql SQL query
@param {Array} parameters in the SQL query
@returns {Promise}
Run a SQL query against the database and retrieve all the rows . @param { String } sql SQL query @param { Array } parameters in the SQL query @returns { Promise }
all(sql, parameters) {
      return new Promise((resolve, reject) => {
         this.connection.all(sql, parameters, (err, rows) => {
            if (err) {
               reject(err);
            }
            resolve(rows);
         })
      })
   }
all ( sql , parameters ) { return new Promise ( ( resolve , reject ) => { this . connection . all ( sql , parameters , ( err , rows ) => { if ( err ) { reject ( err ) ; } resolve ( rows ) ; } ) } ) }
Run a SQL query against the database and retrieve all the rows.
Run a SQL query against the database and retrieve all the rows .