Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix typostypo | Victor Uriarte | 2017-11-29 | 1 | -3/+3 |
| | |||||
* | Fix parsing of UNION ALL after WHERE (fixes #349). | Andi Albrecht | 2017-07-29 | 1 | -2/+3 |
| | |||||
* | Fix parsing of INTO keyword in WHERE clauses (fixes #324). | Andi Albrecht | 2017-03-02 | 1 | -1/+1 |
| | |||||
* | Correct license link (fixes #288). | Andi Albrecht | 2016-09-14 | 1 | -1/+1 |
| | |||||
* | Convert string literals to unicode for Py27 | Oleg Broytman | 2016-08-31 | 1 | -6/+6 |
| | | | | | | Working with non-ascii in Python require all-unicode approach, but str literals in Python 2.7 are bytes. The patch makes them unicode. Syntax u'' is supported in Python 2.7 and 3.3+. | ||||
* | Unify_naming_schema. Closes #283 | Victor Uriarte | 2016-08-22 | 1 | -19/+12 |
| | |||||
* | Clean-up quoting | Victor Uriarte | 2016-08-22 | 1 | -8/+4 |
| | |||||
* | Avoid double apostrophes | Oleg Broytman | 2016-08-06 | 1 | -2/+11 |
| | | | | | | | | If the value is Single it's already quoted with apostrophes. Avoid double apostrophes it that case by using double-quotes instead. For example, if the value is 'value' the output is "'value'" instead of ''value''. | ||||
* | Returning clause ends where clause | Darik Gamble | 2016-06-25 | 1 | -1/+1 |
| | |||||
* | token_next shouldn't ignore skip_cm | Darik Gamble | 2016-06-20 | 1 | -19/+7 |
| | |||||
* | Make use of token_index more obvious | Victor Uriarte | 2016-06-15 | 1 | -10/+3 |
| | |||||
* | Normalize behavior between token_next and token_next_by | Victor Uriarte | 2016-06-15 | 1 | -1/+2 |
| | | | | both will now return the "next" token and not itself when passing own index | ||||
* | Rename token_idx_ funcs to simply token_ funcs | Victor Uriarte | 2016-06-15 | 1 | -23/+23 |
| | |||||
* | Remove functions no-longer used | Victor Uriarte | 2016-06-15 | 1 | -51/+0 |
| | |||||
* | Change token_ funcs to token_idx funcs | Victor Uriarte | 2016-06-15 | 1 | -26/+38 |
| | |||||
* | Change argument order to match order of all other functions | Victor Uriarte | 2016-06-14 | 1 | -2/+2 |
| | |||||
* | Remove unused code from sql.py and style up some changes | Victor Uriarte | 2016-06-14 | 1 | -38/+7 |
| | |||||
* | Merge remote-tracking branch 'core/long_live_indexes' into develop | Victor Uriarte | 2016-06-14 | 1 | -1/+105 |
|\ | |||||
| * | Use a specialized token_idx_next. | Sjoerd Job Postmus | 2016-06-12 | 1 | -0/+20 |
| | | | | | | | | Prevent calling token_index. | ||||
| * | Index-based token_idx_prev | Sjoerd Job Postmus | 2016-06-12 | 1 | -6/+22 |
| | | | | | | | | | | 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 | -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. | ||||
* | | Fix token-parent behavior | Victor Uriarte | 2016-06-12 | 1 | -0/+3 |
| | | | | | | | | Closes issue #226 | ||||
* | | Remove token_first; its redundant to token_next(idx=0) | Victor Uriarte | 2016-06-12 | 1 | -20/+8 |
| | | |||||
* | | Restyle pprint_tree and align upto idx=99 | Victor Uriarte | 2016-06-12 | 1 | -3/+11 |
| | | |||||
* | | Add sql.Operation tokenlist | Victor Uriarte | 2016-06-12 | 1 | -0/+4 |
| | | |||||
* | | Replace remove with list comprehension on sql.py | Victor Uriarte | 2016-06-11 | 1 | -1/+3 |
| | | | | | | | | Help performance for #62, #135 | ||||
* | | Refactor sql.py insert_after | Victor Uriarte | 2016-06-11 | 1 | -1/+1 |
| | | |||||
* | | Refactor sql.py group_tokens | Victor Uriarte | 2016-06-11 | 1 | -19/+11 |
| | | | | | | | | | | first token in group had no parents and almost became batman | ||||
* | | Fix get_token_at_offset behavior at edge | Victor Uriarte | 2016-06-11 | 1 | -1/+1 |
| | | | | | | | | | | At position 6 (with an index starting at 0) it should have been on 2nd word for the example sql='select * from dual' | ||||
* | | Remove unneded code from sql.py | Victor Uriarte | 2016-06-11 | 1 | -12/+2 |
| | | | | | | | | Remove HACK code. Code is now properly updated | ||||
* | | Fix Case statements | Adam Greenhall | 2016-06-06 | 1 | -1/+4 |
| | | |||||
* | | Refactor match logicfilters_sql | Victor Uriarte | 2016-06-04 | 1 | -18/+9 |
| | | |||||
* | | Simplify index | Victor Uriarte | 2016-06-04 | 1 | -10/+9 |
| | | |||||
* | | Refactor one-time use functions | Victor Uriarte | 2016-06-04 | 1 | -24/+3 |
| | | |||||
* | | Allow tokenlists to skip over comments | Victor Uriarte | 2016-06-04 | 1 | -10/+13 |
| | | | | | | | | Rename ignore_cm to skip_cm for consistency | ||||
* | | Clean-up code style sql.py | Victor Uriarte | 2016-06-04 | 1 | -35/+31 |
| | | | | | | | | other items inside slots are already defined in parent class | ||||
* | | Clean Token/Tokenlist init's | Victor Uriarte | 2016-06-04 | 1 | -8/+3 |
| | | |||||
* | | Clean-up rename variables in loops to token sql.py | Victor Uriarte | 2016-06-04 | 1 | -19/+19 |
| | | |||||
* | | Simplify sql.py naming/alias | Victor Uriarte | 2016-06-04 | 1 | -19/+6 |
| | | |||||
* | | Change pprint w new str format; can out to file | Victor Uriarte | 2016-06-04 | 1 | -14/+13 |
| | | |||||
* | | Add unicode-str compatible cls decorator | Victor Uriarte | 2016-06-04 | 1 | -28/+9 |
| | | |||||
* | | Add or Update copyright year to files | Victor Uriarte | 2016-06-04 | 1 | -0/+5 |
| | | |||||
* | | Fix flake8 styling | Victor Uriarte | 2016-05-29 | 1 | -1/+1 |
|/ | |||||
* | 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 |
| |