lib/fetch-all.js
async function fetchAll(connection, query, params){

    // execute query
    const [result] = await _query(connection, query, params);

    // entry found ?
    return result || [];
}
async function fetchAll(connection, query, params){

    // execute query
    const [result] = await _query(connection, query, params);

    // entry found ?
    return result || [];
}
async function fetchAll ( connection , query , params ) { // execute query const [ result ] = await _query ( connection , query , params ) ; // entry found ? return result || [ ] ; }
fetch multiple rows in once
fetch multiple rows in once