| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Replace _group_matching with an inward-out grouping algorithm | Sjoerd Job Postmus | 2016-06-12 | 3 | -13/+30 |
| | | | | | | | | | | | | 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 | 2 | -24/+37 |
| | | | | | | | 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 | 2 | -25/+27 |
| | | | | | | | | | | | 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. | ||||
| * | CREATE TABLE should not be parsed as Function | Tenghuan | 2016-05-29 | 1 | -0/+9 |
| | | |||||
| * | Merge pull request #236 from koljonen/using_directly_followed_by_parenthesis | Andi Albrecht | 2016-05-28 | 1 | -0/+1 |
| |\ | | | | | Recognize USING as a keyword in 'USING(', not just in 'USING (' | ||||
| | * | Don't call is_keyword for the new 'USING(' regex | koljonen | 2016-05-15 | 1 | -1/+1 |
| | | | |||||
| | * | Recognize USING as a keyword in 'USING(', not just in 'USING (' | koljonen | 2016-05-14 | 1 | -0/+1 |
| | | | | | | | | | These were previously caught by (r'[^\W\d_]\w*(?=[.(])', tokens.Name), so I added a special regex just above that one. | ||||
| * | | Fix small typo in documentation | Dag Wieers | 2016-05-26 | 1 | -2/+2 |
| | | | |||||
| * | | refactor group_comments | Victor Uriarte | 2016-05-11 | 1 | -15/+9 |
| | | | |||||
| * | | refactor sql.py functions | Victor Uriarte | 2016-05-11 | 2 | -85/+31 |
| | | | |||||
| * | | 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 remove quotes | Victor Uriarte | 2016-05-10 | 1 | -11/+3 |
| | | | |||||
| * | | 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 | 3 | -110/+38 |
| | | | | | | | | | remove slots in subclasses | ||||
| * | | Introduce @recurse to refactor recursion | Victor Uriarte | 2016-05-10 | 2 | -11/+12 |
| | | | |||||
| * | | generalize group_tokens for more use cases | Victor Uriarte | 2016-05-10 | 2 | -19/+29 |
| | | | |||||
| * | | adding powerful _token_matching and imt helper | Victor Uriarte | 2016-05-10 | 1 | -6/+30 |
| | | | |||||
| * | | update sql | Victor Uriarte | 2016-05-10 | 1 | -8/+8 |
| | | | |||||
| * | | Update compat and utils | Victor Uriarte | 2016-05-10 | 2 | -13/+98 |
| |/ | |||||
| * | 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 | 3 | -33/+28 |
| | | |||||
| * | Token keyword correction | Cauê Beloni | 2016-03-29 | 1 | -1/+1 |
| | | |||||
| * | Ensure get_type() works for queries that use WITH. | Andrew Tipton | 2016-03-02 | 3 | -1/+14 |
| | | |||||
| * | Add keyword 'SEQUENCE' | Shen Longxing | 2015-12-22 | 1 | -0/+1 |
| | | | | For now, sqlparse does not support 'create sequence' statement. Add keyword 'SEQUENCE' to support it. | ||||
| * | fix issue #215 | Shen Longxing | 2015-12-18 | 1 | -2/+2 |
| | | | | Add splitlevel for while/end while | ||||
| * | fix issue #215 | Shen Longxing | 2015-12-18 | 1 | -1/+1 |
| | | | | Add token for 'END WHILE' | ||||
| * | fix issue #215 | Shen Longxing | 2015-12-18 | 1 | -0/+1 |
| | | | | Add keyword 'WHILE' | ||||
| * | fix issue #213 | Shen Longxing | 2015-12-14 | 1 | -1/+3 |
| | | |||||
| * | Fix version check when casting TokenList to string (fixes #212). | Andi Albrecht | 2015-12-08 | 1 | -1/+1 |
| | | |||||
| * | 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 |
| | | | |||||
| * | | Remove SQLParseError from top-level module. | Andi Albrecht | 2015-10-26 | 1 | -2/+0 |
| | | | |||||
| * | | Remove sql.Token.to_unicode. | Andi Albrecht | 2015-10-26 | 1 | -8/+0 |
| | | | |||||
| * | | Remove conditional for OrderedDict. | Andi Albrecht | 2015-10-26 | 1 | -46/+24 |
| | | | | | | | | | All supported Python versions have OrderedDict. | ||||
| * | | Skip tests for SQLParseError for now, it will go away soon. | Andi Albrecht | 2015-10-26 | 1 | -1/+1 |
| | | | |||||
| * | | Cleanup module code. | Andi Albrecht | 2015-10-26 | 8 | -31/+31 |
| | | | |||||
| * | | Fix tab expansion for Python 3. | Andi Albrecht | 2015-10-26 | 1 | -5/+7 |
| | | | |||||
| * | | Use compat module for single Python 2/3 code base. | Andi Albrecht | 2015-10-26 | 5 | -38/+44 |
| | | | | | | | | | This change includes minor fixes and code cleanup too. | ||||
| * | | Add compatibility module from v0.2.0 branch. | Andi Albrecht | 2015-10-26 | 1 | -0/+42 |
| | | | |||||
| * | | Switch back to development. | Andi Albrecht | 2015-10-25 | 1 | -1/+1 |
| |/ | |||||
| * | Bump version for 0.1.18 release. | Tim Graham | 2015-10-24 | 1 | -1/+1 |
| | | |||||
| * | Merge branch 'master' of github.com:andialbrecht/sqlparse | Andi Albrecht | 2015-10-24 | 1 | -1/+1 |
| |\ | |||||
| | * | Merge pull request #202 from timgraham/generator-stopiteration | Andi Albrecht | 2015-10-24 | 1 | -1/+1 |
| | |\ | | | | | | | Fix PendingDeprecationWarning on Python 3.5. | ||||
| | | * | Fix PendingDeprecationWarning on Python 3.5. | Tim Graham | 2015-10-23 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | Avoid "PendingDeprecationWarning: generator 'group_identifier.<locals>._consume_cycle' raised StopIteration." | ||||
| * | | | Switch back to development mode. | Andi Albrecht | 2015-10-24 | 1 | -1/+1 |
| |/ / | |||||
| * | | Bump version number.0.1.17 | Andi Albrecht | 2015-10-24 | 1 | -1/+1 |
| |/ | |||||
| * | Speed up token_index by providing a starting index. | Ryan Wooden | 2015-10-21 | 2 | -9/+19 |
| | | |||||
