src/sqlite.android.js
function DBGetRowArrayNative(cursor) {
    //noinspection JSUnresolvedFunction
    let count = cursor.getColumnCount();
    let results = [];
    for (let i=0;i<count;i++) {
        const type = cursor.getType(i);
        switch (type) {
            case 0: // NULL
                results.push(null);
                break;

            case 1: // Integer
                //noinspection JSUnresolvedFunction
                results.push(cursor.getLong(i));
                break;

            case 2: // Float
                //noinspection JSUnresolvedFunction
                results.push(cursor.getFloat(i));
                break;

            case 3: // String
                //noinspection JSUnresolvedFunction
                results.push(cursor.getString(i));
                break;

            case 4: // Blob
                // noinspection JSCheckFunctionSignatures
                results.push(cursor.getBlob(i));
                break;

            default:
                throw new Error('SQLITE - Unknown Field Type ' + type);
        }
    }
    return results;
}
function DBGetRowArrayNative(cursor) {
    //noinspection JSUnresolvedFunction
    let count = cursor.getColumnCount();
    let results = [];
    for (let i=0;i<count;i++) {
        const type = cursor.getType(i);
        switch (type) {
            case 0: // NULL
                results.push(null);
                break;

            case 1: // Integer
                //noinspection JSUnresolvedFunction
                results.push(cursor.getLong(i));
                break;

            case 2: // Float
                //noinspection JSUnresolvedFunction
                results.push(cursor.getFloat(i));
                break;

            case 3: // String
                //noinspection JSUnresolvedFunction
                results.push(cursor.getString(i));
                break;

            case 4: // Blob
                // noinspection JSCheckFunctionSignatures
                results.push(cursor.getBlob(i));
                break;

            default:
                throw new Error('SQLITE - Unknown Field Type ' + type);
        }
    }
    return results;
}
function DBGetRowArrayNative ( cursor ) { //noinspection JSUnresolvedFunction let count = cursor . getColumnCount ( ) ; let results = [ ] ; for ( let i = 0 ; i < count ; i ++ ) { const type = cursor . getType ( i ) ; switch ( type ) { case 0 : // NULL results . push ( null ) ; break ; case 1 : // Integer //noinspection JSUnresolvedFunction results . push ( cursor . getLong ( i ) ) ; break ; case 2 : // Float //noinspection JSUnresolvedFunction results . push ( cursor . getFloat ( i ) ) ; break ; case 3 : // String //noinspection JSUnresolvedFunction results . push ( cursor . getString ( i ) ) ; break ; case 4 : // Blob // noinspection JSCheckFunctionSignatures results . push ( cursor . getBlob ( i ) ) ; break ; default : throw new Error ( 'SQLITE - Unknown Field Type ' + type ) ; } } return results ; }
*
Parses a Row of data into a JS Array (as Native)
@param cursor {Object}
@returns {Array}
* Parses a Row of data into a JS Array ( as Native )