static byWhere(where, order) {
        return __awaiter(this, void 0, void 0, function* () {
            const rows = yield alasql_1.default.promise(`select id, username, password, fullName
             from users
             where ${where}
             ` + (order ? `order by ${order}` : ''));
            return rows.map(row => new User(row.username, row.password, row.fullName, row.id));
        });
    }
// Find all users matching the supplied SQL 'where' clause
Find all users matching the supplied SQL 'where' clause
Find all users matching the supplied SQL ' where ' clause
static byWhere(where, order) {
        return __awaiter(this, void 0, void 0, function* () {
            const rows = yield alasql_1.default.promise(`select id, username, password, fullName
             from users
             where ${where}
             ` + (order ? `order by ${order}` : ''));
            return rows.map(row => new User(row.username, row.password, row.fullName, row.id));
        });
    }
static byWhere ( where , order ) { return __awaiter ( this , void 0 , void 0 , function * ( ) { const rows = yield alasql_1 . default . promise ( ` ${ where } ` + ( order ? ` ${ order } ` : '' ) ) ; return rows . map ( row => new User ( row . username , row . password , row . fullName , row . id ) ) ; } ) ; }
Find all users matching the supplied SQL 'where' clause
Find all users matching the supplied SQL ' where ' clause