handleResponse(data, process) {
        if (data.length > 0) {
            // returning data
            return data;
        } if (process.isAltered) {
            if (process.type === 'insert' && data.affectedRows === 1) {
                return data.insertId;
            }
            // data altered successfully and no thing to return
            const affectedRows = data.hasOwnProperty('affectedRows') ? data.affectedRows : false;
            return affectedRows;
        }
        // select statement but no data found
        return false;
    }
/**
	   * handle query response depending on query operation type
	   * @param {array} data
	   * @param {object} process
	   */
handle query response depending on query operation type
@param {array} data
@param {object} process
handle query response depending on query operation type @param { array } data @param { object } process
handleResponse(data, process) {
        if (data.length > 0) {
            return data;
        } if (process.isAltered) {
            if (process.type === 'insert' && data.affectedRows === 1) {
                return data.insertId;
            }
            const affectedRows = data.hasOwnProperty('affectedRows') ? data.affectedRows : false;
            return affectedRows;
        }
        return false;
    }
handleResponse ( data , process ) { if ( data . length > 0 ) { return data ; } if ( process . isAltered ) { if ( process . type === 'insert' && data . affectedRows === 1 ) { return data . insertId ; } const affectedRows = data . hasOwnProperty ( 'affectedRows' ) ? data . affectedRows : false ; return affectedRows ; } return false ; }
handle query response depending on query operation type
 @param {array} data
 @param {object} process
handle query response depending on query operation type @param { array } data @param { object } process
// returning data // data altered successfully and no thing to return // select statement but no data found