Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Merge remote-tracking branch 'core/long_live_indexes' into develop | Victor Uriarte | 2016-06-14 | 1 | -67/+69 | |
|\ | ||||||
| * | Use a specialized token_idx_next. | Sjoerd Job Postmus | 2016-06-12 | 1 | -4/+4 | |
| | | | | | | | | Prevent calling token_index. | |||||
| * | Index-based token_idx_prev | Sjoerd Job Postmus | 2016-06-12 | 1 | -2/+3 | |
| | | | | | | | | | | Prevent some more calls to token_index in group_identifier_list. They are now all gone. | |||||
| * | Use specialized token_idx_next_by in group_aliased. | Sjoerd Job Postmus | 2016-06-12 | 1 | -6/+4 | |
| | | | | | | | | | | | | | | | | | | | | The method group_aliased was making a lot of calls to token_index. By specializing token_next_by to token_idx_next_by, the calls to token_index became superfluous. Also use token_idx_next_by in group_identifier_list. It was making a lot of calls, which is now more than reduced in half. | |||||
| * | Re-use token index in group_identifier. | Sjoerd Job Postmus | 2016-06-12 | 1 | -8/+13 | |
| | | ||||||
| * | Replace _group_matching with an inward-out grouping algorithm | Sjoerd Job Postmus | 2016-06-12 | 1 | -8/+20 | |
| | | | | | | | | | | | | | | | | | | | | | | All the matching between open/close was done all the time, first finding the matching closing token, and then grouping the tokens in between, and recurse over the newly created list. Instead, it is more efficient to look for the previous open-token on finding a closing-token, group these two together, and then continue on. squashed: Handle token indices in group_tokens_between and find_matching. | |||||
| * | Special-case group_tokens(..., tokens_between()) | Sjoerd Job Postmus | 2016-06-12 | 1 | -24/+14 | |
| | | | | | | | | | | | | When having been guaranteed that the tokens form a range, it is possible to get rid of a lot of calls to `Token.tokens.remove(...)` which are expensive. | |||||
| * | Call `Token`-methods index based. | Sjoerd Job Postmus | 2016-06-12 | 1 | -24/+26 | |
| | | | | | | | | | | | | | | | | | | | | A lot of methods have token-to-idx magic due to `Token._find_matching` converting tokens to indexes. Unknowingly, this turns innocent looking algorithms into O(n^2) (or worse). This does not solve the problem, but makes it more clear by moving the call to `Token.token_index` obvious at the call-site, at the cost of repeating it over-and-over. | |||||
* | | Refactor grouping | Victor Uriarte | 2016-06-12 | 1 | -8/+11 | |
| | | | | | | | | Alternate form to transverse the tlists and clean up matching. | |||||
* | | Add sql.Operation tokenlist | Victor Uriarte | 2016-06-12 | 1 | -7/+7 | |
| | | ||||||
* | | Fix grouping of `case` within parenthesis. | Victor Uriarte | 2016-06-11 | 1 | -0/+2 | |
| | | | | | | | | Closes #164 | |||||
* | | clean up grouping | Victor Uriarte | 2016-06-11 | 1 | -3/+4 | |
| | | ||||||
* | | Organize engine module | Victor Uriarte | 2016-06-06 | 3 | -37/+53 | |
| | | ||||||
* | | Refactor statement filter | Victor Uriarte | 2016-06-04 | 1 | -38/+27 | |
| | | ||||||
* | | Minor refactor statement filter and add comments | Victor Uriarte | 2016-06-04 | 1 | -10/+27 | |
| | | ||||||
* | | Refactor filter-stack to simplify logic | Victor Uriarte | 2016-06-04 | 2 | -38/+15 | |
| | | | | | | | | | | | | if (self.stmtprocess or self.postprocess or self.split_statements or self._grouping): always evaluates to true after removing unused features | |||||
* | | Remove as parameter stack in filter.process | Victor Uriarte | 2016-06-04 | 2 | -5/+5 | |
| | | ||||||
* | | Add or Update copyright year to files | Victor Uriarte | 2016-06-04 | 3 | -2/+14 | |
| | | ||||||
* | | Remove redundant functions | Victor Uriarte | 2016-06-02 | 1 | -15/+1 | |
| | | ||||||
* | | Fix flake8 styling | Victor Uriarte | 2016-05-29 | 2 | -4/+5 | |
| | | ||||||
* | | Fix unicode comparison warning | Victor Uriarte | 2016-05-29 | 1 | -2/+2 | |
| | | ||||||
* | | Change old-style class to new-style | Victor Uriarte | 2016-05-29 | 1 | -1/+1 | |
|/ | | | | | py3 interpreted old code as new-style classes. py2 should match its behavior. | |||||
* | CREATE TABLE should not be parsed as Function | Tenghuan | 2016-05-29 | 1 | -0/+9 | |
| | ||||||
* | refactor group_comments | Victor Uriarte | 2016-05-11 | 1 | -15/+9 | |
| | ||||||
* | separate identifier grouping into its components | Victor Uriarte | 2016-05-10 | 1 | -77/+50 | |
| | | | | | leaving sql.Operations in for future PR small behavior changed for invalid identifier | |||||
* | refactor identifier list and alias grouping | Victor Uriarte | 2016-05-10 | 1 | -62/+26 | |
| | ||||||
* | refactor _group_left_right | Victor Uriarte | 2016-05-10 | 1 | -64/+39 | |
| | ||||||
* | group all the one-offs | Victor Uriarte | 2016-05-10 | 1 | -31/+21 | |
| | ||||||
* | Add group matching M_tokens and refactor group matching | Victor Uriarte | 2016-05-10 | 1 | -90/+22 | |
| | | | | remove slots in subclasses | |||||
* | Introduce @recurse to refactor recursion | Victor Uriarte | 2016-05-10 | 1 | -11/+7 | |
| | ||||||
* | generalize group_tokens for more use cases | Victor Uriarte | 2016-05-10 | 1 | -10/+4 | |
| | ||||||
* | Improve identifier parsing when identifier is a literal combined with order ↵ | Andi Albrecht | 2016-04-06 | 1 | -0/+2 | |
| | | | | keyword (fixes #101). | |||||
* | Fix #230 (function comparison grouping) | saaj | 2016-04-05 | 1 | -1/+2 | |
| | ||||||
* | Code cleanup. | Andi Albrecht | 2016-04-03 | 1 | -24/+19 | |
| | ||||||
* | fix issue #215 | Shen Longxing | 2015-12-18 | 1 | -2/+2 | |
| | | | Add splitlevel for while/end while | |||||
* | Merge branch 'hotfix'. | Andi Albrecht | 2015-12-08 | 1 | -3/+3 | |
|\ | ||||||
| * | Workaround to avoid IndexError when grouping identifiers. | Andi Albrecht | 2015-12-08 | 1 | -3/+3 | |
| | | ||||||
* | | Cleanup module code. | Andi Albrecht | 2015-10-26 | 3 | -11/+13 | |
|/ | ||||||
* | Fix PendingDeprecationWarning on Python 3.5. | Tim Graham | 2015-10-23 | 1 | -1/+1 | |
| | | | | | Avoid "PendingDeprecationWarning: generator 'group_identifier.<locals>._consume_cycle' raised StopIteration." | |||||
* | Speed up token_index by providing a starting index. | Ryan Wooden | 2015-10-21 | 1 | -8/+10 | |
| | ||||||
* | Limit number of tokens checked in group_identifier. | Ryan Wooden | 2015-10-21 | 1 | -2/+5 | |
| | | | | | This significantly improves performance when grouping a large list of IDs. | |||||
* | Handle END IF correctly when splitting statements (fixes #194). | Andi Albrecht | 2015-07-28 | 1 | -0/+3 | |
| | ||||||
* | Don't treat DECLARE within BEGIN blocks as relevant to split level (fixes #193). | Andi Albrecht | 2015-07-26 | 1 | -1/+1 | |
| | ||||||
* | Group square-brackets into identifiers | Darik Gamble | 2015-03-04 | 1 | -4/+5 | |
| | | | | Indentifier.get_array_indices() looks for square brackets, and yields lists of bracket grouped tokens as array indices | |||||
* | Parse square brackets as a group just like parens | Darik Gamble | 2015-03-04 | 1 | -4/+43 | |
| | | | | | - add class sql.SquareBrackets - replace group_parenthesis() with more generic group_brackets(), which groups square and round brackets, so each can contain groups of the other | |||||
* | Move _find_matching to a module-level function | Darik Gamble | 2015-03-04 | 1 | -11/+13 | |
| | ||||||
* | Group adjacent names to allow aliasing without the AS keyword | Darik Gamble | 2015-02-09 | 1 | -3/+4 | |
| | ||||||
* | (postgresql) Add support for square bracket array indexing, by darikg. | Andi Albrecht | 2015-02-08 | 1 | -1/+3 | |
| | | | | Pull request #170 with trivial conflicts resolved. | |||||
* | Group comments to parent object (fixes #160). | Andi Albrecht | 2015-01-17 | 1 | -1/+20 | |
| | ||||||
* | Improve parsing of inline comments for identifiers (fixes #163). | Andi Albrecht | 2015-01-16 | 1 | -0/+2 | |
| |