src/CRUD.SqliteAdapter.js
function parseSchemaInfo(resultset) {
            for (var i = 0; i < resultset.rs.rows.length; i++) {
                var row = resultset.rs.rows.item(i);
                if (row.name.indexOf('sqlite_autoindex') > -1 || row.name == '__WebKitDatabaseInfoTable__') continue;
                if (row.type == 'table') {
                    tables.push(row.tbl_name);
                } else if (row.type == 'index') {
                    if (!(row.tbl_name in indexes)) {
                        indexes[row.tbl_name] = [];
                    }
                    indexes[row.tbl_name].push(row.name);
                }
            }
            return;
        }
function parseSchemaInfo(resultset) {
            for (var i = 0; i < resultset.rs.rows.length; i++) {
                var row = resultset.rs.rows.item(i);
                if (row.name.indexOf('sqlite_autoindex') > -1 || row.name == '__WebKitDatabaseInfoTable__') continue;
                if (row.type == 'table') {
                    tables.push(row.tbl_name);
                } else if (row.type == 'index') {
                    if (!(row.tbl_name in indexes)) {
                        indexes[row.tbl_name] = [];
                    }
                    indexes[row.tbl_name].push(row.name);
                }
            }
            return;
        }
function parseSchemaInfo ( resultset ) { for ( var i = 0 ; i < resultset . rs . rows . length ; i ++ ) { var row = resultset . rs . rows . item ( i ) ; if ( row . name . indexOf ( 'sqlite_autoindex' ) > - 1 || row . name == '__WebKitDatabaseInfoTable__' ) continue ; if ( row . type == 'table' ) { tables . push ( row . tbl_name ) ; } else if ( row . type == 'index' ) { if ( ! ( row . tbl_name in indexes ) ) { indexes [ row . tbl_name ] = [ ] ; } indexes [ row . tbl_name ] . push ( row . name ) ; } } return ; }
Pre-Parse database schema info for further processing. Finds tables and indexes.
@param  {resultSet} database description
@return {void} void
Pre - Parse database schema info for further processing . Finds tables and indexes .