lib/database/Database.js
/** Determine if a query is aggregate (either select or order clauses) */
Determine if a query is aggregate (either select or order clauses)
Determine if a query is aggregate ( either select or order clauses )
function isQueryAggregate(query, exprUtils) {
    for (var _i = 0, _a = Object.values(query.select); _i < _a.length; _i++) {
        var select = _a[_i];
        if (exprUtils.getExprAggrStatus(select) === "aggregate") {
            return true;
        }
    }
    for (var _b = 0, _c = query.orderBy || []; _b < _c.length; _b++) {
        var orderBy = _c[_b];
        if (exprUtils.getExprAggrStatus(orderBy.expr) === "aggregate") {
            return true;
        }
    }
    return false;
}
function isQueryAggregate ( query , exprUtils ) { for ( var _i = 0 , _a = Object . values ( query . select ) ; _i < _a . length ; _i ++ ) { var select = _a [ _i ] ; if ( exprUtils . getExprAggrStatus ( select ) === "aggregate" ) { return true ; } } for ( var _b = 0 , _c = query . orderBy || [ ] ; _b < _c . length ; _b ++ ) { var orderBy = _c [ _b ] ; if ( exprUtils . getExprAggrStatus ( orderBy . expr ) === "aggregate" ) { return true ; } } return false ; }
Determine if a query is aggregate (either select or order clauses)
Determine if a query is aggregate ( either select or order clauses )