| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Use specialized token_idx_next_by in group_aliased. | Sjoerd Job Postmus | 2016-06-12 | 1 | -0/+20 |
| | | | | | | | | | | | 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. | ||||
| * | Replace _group_matching with an inward-out grouping algorithm | Sjoerd Job Postmus | 2016-06-12 | 1 | -4/+9 |
| | | | | | | | | | | | | 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 | -0/+23 |
| | | | | | | | 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. | ||||
| * | refactor sql.py functions | Victor Uriarte | 2016-05-11 | 1 | -82/+30 |
| | | |||||
| * | refactor remove quotes | Victor Uriarte | 2016-05-10 | 1 | -11/+3 |
| | | |||||
| * | Add group matching M_tokens and refactor group matching | Victor Uriarte | 2016-05-10 | 1 | -19/+15 |
| | | | | | remove slots in subclasses | ||||
| * | generalize group_tokens for more use cases | Victor Uriarte | 2016-05-10 | 1 | -9/+25 |
| | | |||||
| * | 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 |
| | | |||||
| * | Code cleanup. | Andi Albrecht | 2016-04-03 | 1 | -2/+4 |
| | | |||||
| * | Ensure get_type() works for queries that use WITH. | Andrew Tipton | 2016-03-02 | 1 | -0/+12 |
| | | |||||
| * | Fix version check when casting TokenList to string (fixes #212). | Andi Albrecht | 2015-12-08 | 1 | -1/+1 |
| | | |||||
| * | Remove sql.Token.to_unicode. | Andi Albrecht | 2015-10-26 | 1 | -8/+0 |
| | | |||||
| * | Cleanup module code. | Andi Albrecht | 2015-10-26 | 1 | -8/+9 |
| | | |||||
| * | Use compat module for single Python 2/3 code base. | Andi Albrecht | 2015-10-26 | 1 | -11/+12 |
| | | | | | This change includes minor fixes and code cleanup too. | ||||
| * | Speed up token_index by providing a starting index. | Ryan Wooden | 2015-10-21 | 1 | -1/+9 |
| | | |||||
| * | Limit number of tokens checked in group_identifier. | Ryan Wooden | 2015-10-21 | 1 | -2/+2 |
| | | | | | | This significantly improves performance when grouping a large list of IDs. | ||||
| * | Ignore comments at beginning of statement when calling Statement.get_type ↵ | Andi Albrecht | 2015-07-26 | 1 | -2/+10 |
| | | | | | (fixes #186). | ||||
| * | Improve detection of aliased identifiers (fixes #185). | Andi Albrecht | 2015-04-19 | 1 | -1/+2 |
| | | |||||
| * | 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 | -0/+9 |
| | | | | | | - 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 get_parent_name() from Identifer to TokenList (so Function can use it) | Darik Gamble | 2015-02-09 | 1 | -21/+11 |
| | | |||||
| * | get_name() uses _get_first_name() | Darik Gamble | 2015-02-09 | 1 | -0/+4 |
| | | |||||
| * | get_alias() uses _get_first_name(), and searches in reverse for "column ↵ | Darik Gamble | 2015-02-09 | 1 | -13/+9 |
| | | | | | expression alias" | ||||
| * | TokenList convenience method _get_first_name | Darik Gamble | 2015-02-09 | 1 | -0/+18 |
| | | |||||
| * | (postgresql) Add support for square bracket array indexing, by darikg. | Andi Albrecht | 2015-02-08 | 1 | -0/+7 |
| | | | | | Pull request #170 with trivial conflicts resolved. | ||||
| * | Improve parsing of inline comments for identifiers (fixes #163). | Andi Albrecht | 2015-01-16 | 1 | -0/+3 |
| | | |||||
| * | Fix Function.get_parameters() returning empty list for SQL functions that ↵ | spigwitmer | 2014-02-05 | 1 | -3/+3 |
| | | | | | have a single nested function as a param | ||||
| * | Fix Function.get_parameters() with 1 literal as its parameter | spigwitmer | 2014-02-04 | 1 | -0/+2 |
| | | |||||
| * | Support for BEGIN/END blocks, add FOREACH keyword. | Andi Albrecht | 2013-11-19 | 1 | -0/+6 |
| | | |||||
| * | Improve grouping of expressions (targets #23). | Andi Albrecht | 2013-10-24 | 1 | -0/+8 |
| | | |||||
| * | Add skip_ws flag to Token.insert_after (fixes #108). | Andi Albrecht | 2013-08-30 | 1 | -2/+2 |
| | | |||||
| * | Fixed Function.get_parameters (issue93). | wayne.wuw | 2013-05-09 | 1 | -0/+2 |
| | | |||||
| * | Add order criterion to identifier in ORDER BY clause (fixes #89). | Andi Albrecht | 2013-04-05 | 1 | -0/+7 |
| | | |||||
| * | Add minimal changes to support Python 2.4. | Andi Albrecht | 2013-02-28 | 1 | -1/+4 |
| | | | | | | Fair warning: Support for Python 2.4 may be dropped at any time. But as long as the changes are that minimal and have no significant side-effects we can keep up the compatibility. | ||||
| * | Helper function to return a token at a specific offset. | Andi Albrecht | 2013-01-27 | 1 | -0/+9 |
| | | |||||
| * | Doc updates. | Andi Albrecht | 2013-01-01 | 1 | -1/+2 |
| | | |||||
| * | Python 3 is now fully supported without any patches. | Andi Albrecht | 2012-12-31 | 1 | -4/+22 |
| | | | | | | | | | | This change makes the extras/py3k stuff obsolete and installing for Python 3 is as easy as "python3 setup.py install". setup.py uses distribute's use_2to3 flag to automatically run 2to3 when Python 3 is used. \o/ Happy New Year, everyone! | ||||
| * | Remove superfluous cleanup conditions. | Andi Albrecht | 2012-11-12 | 1 | -4/+1 |
| | | |||||
| * | Improve handling of quoted indentifiers (fixes issue78). | Andi Albrecht | 2012-11-03 | 1 | -6/+19 |
| | | |||||
| * | Encode value when reprinting the object. | Andi Albrecht | 2012-08-12 | 1 | -1/+1 |
| | | |||||
| * | Merge branch 'master' into antiorm | Jesús Leganés Combarro "Piranna" | 2012-05-19 | 1 | -1/+8 |
| | | | | | | Conflicts: sqlparse/filters.py | ||||
| * | Removed debug code | Jesús Leganés Combarro | 2012-05-16 | 1 | -1/+0 |
| | | |||||
| * | Some little optimizations | Jesús Leganés Combarro "Piranna" | 2012-04-28 | 1 | -27/+28 |
| | | |||||
| * | various optimizations in sql.py | quest | 2012-04-22 | 1 | -8/+19 |
| | | |||||
| * | TokenLists.value is equal to their unicode() representation (fixes #30). | Andi Albrecht | 2012-04-19 | 1 | -1/+1 |
| | | |||||
| * | Pretty format comments in identifier lists (fixes issue59). | Andi Albrecht | 2012-04-19 | 1 | -0/+8 |
| | | |||||
| * | Changed get_case() to use a mode stateful variable | Jesús Leganés Combarro "Piranna" | 2012-02-03 | 1 | -15/+25 |
| | | |||||
| * | Changed get_identifiers() to be a generator | Jesús Leganés Combarro "Piranna" | 2012-02-03 | 1 | -3/+4 |
| | | |||||
| * | Removed useless default return None (they are by default in Python) | Jesús Leganés Combarro "Piranna" | 2012-02-03 | 1 | -9/+12 |
| | | |||||
