Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | | Returning clause ends where clause | Darik Gamble | 2016-06-25 | 2 | -1/+9 | |
|/ / | ||||||
* | | Merge pull request #267 from darikg/returning | Vik | 2016-06-25 | 1 | -0/+1 | |
|\ \ | | | | | | | Add RETURNING keyword | |||||
| * | | Add RETURNING keyword | Darik Gamble | 2016-06-24 | 1 | -0/+1 | |
|/ / | ||||||
* | | Merge pull request #263 from vmuriart/clean-tests | Vik | 2016-06-23 | 10 | -1361/+1367 | |
|\ \ | | | | | | | Clean-up tests. Fully migrate to Py.test | |||||
| * | | Format cli.py and add cli-tests | Victor Uriarte | 2016-06-20 | 2 | -7/+42 | |
| | | | ||||||
| * | | Split test/asserts that are weakly related | Victor Uriarte | 2016-06-20 | 1 | -8/+22 | |
| | | | ||||||
| * | | Parametrize tests | Victor Uriarte | 2016-06-20 | 5 | -153/+70 | |
| | | | | | | | | | | | | | | | | | | Allows for tests to continue if the first assert had failed. In particular useful when certain change is dealing with two almost opposing edge cases. | |||||
| * | | Remove some test classes and clean-up | Victor Uriarte | 2016-06-20 | 6 | -1024/+1102 | |
| | | | ||||||
| * | | Replace tests/utils with conftest.py | Victor Uriarte | 2016-06-20 | 5 | -35/+55 | |
| | | | | | | | | | | | | http://stackoverflow.com/questions/34466027/what-is-the-use-of-conftest-py | |||||
| * | | Replace other UnitTest with Py.Test | Victor Uriarte | 2016-06-20 | 8 | -462/+441 | |
| | | | ||||||
| * | | Replace ndiffAssertEqual with Py.Test | Victor Uriarte | 2016-06-20 | 6 | -314/+277 | |
|/ / | ||||||
* | | Merge pull request #265 from darikg/dont-ignore-skip_cm | Victor Uriarte | 2016-06-20 | 2 | -19/+13 | |
|\ \ | ||||||
| * | | token_next shouldn't ignore skip_cm | Darik Gamble | 2016-06-20 | 2 | -19/+13 | |
| | | | ||||||
* | | | Merge pull request #264 from julienbaley/patch-1 | Vik | 2016-06-20 | 1 | -1/+1 | |
|\ \ \ | |/ / |/| | | Fix release date of 0.1.19 | |||||
| * | | Fix release date of 0.1.19 | Julien Baley | 2016-06-20 | 1 | -1/+1 | |
|/ / | ||||||
* | | Previous fix for period failed when another token (non-groupable) followed. | Victor Uriarte | 2016-06-19 | 2 | -3/+17 | |
| | | ||||||
* | | Revert behavior of dangling period(hanging schema qualifier) | Victor Uriarte | 2016-06-18 | 2 | -5/+5 | |
| | | | | | | | | | | | | Related to #261. Reverting to previous behavior until a way to handle behavior/grouping of invalid sql is agreed upon. | |||||
* | | Misc. small code clean-up/comments | Victor Uriarte | 2016-06-18 | 3 | -4/+4 | |
| | | ||||||
* | | Merge pull request #260 from vmuriart/long_live_indexes | Vik | 2016-06-16 | 12 | -318/+424 | |
|\ \ | | | | | | | Long live indexes - Improve performance | |||||
| * | | Update AUTHORS and CHANGELOG | Victor Uriarte | 2016-06-15 | 2 | -0/+2 | |
| | | | ||||||
| * | | Change group_matching back to idx | Victor Uriarte | 2016-06-15 | 1 | -6/+16 | |
| | | | ||||||
| * | | remove group left_right | Victor Uriarte | 2016-06-15 | 1 | -27/+0 | |
| | | | ||||||
| * | | Change grouping from _left_right to _group | Victor Uriarte | 2016-06-15 | 1 | -18/+71 | |
| | | | ||||||
| * | | remove extra recurse and rename vars | Victor Uriarte | 2016-06-15 | 1 | -30/+43 | |
| | | | | | | | | | | | | | | | # Conflicts: # sqlparse/engine/grouping.py | |||||
| * | | Refactor _group's prev token logic | Victor Uriarte | 2016-06-15 | 1 | -13/+11 | |
| | | | ||||||
| * | | Reduce calls by _group to get tk idx | Victor Uriarte | 2016-06-15 | 1 | -4/+15 | |
| | | | ||||||
| * | | Re-Write grouping functions | Victor Uriarte | 2016-06-15 | 1 | -29/+47 | |
| | | | ||||||
| * | | Reorder grouping code and func call order | Victor Uriarte | 2016-06-15 | 1 | -67/+66 | |
| | | | | | | | | | | | | Remove repeated for-each/for grouping | |||||
| * | | Make use of token_index more obvious | Victor Uriarte | 2016-06-15 | 3 | -15/+9 | |
| | | | ||||||
| * | | Normalize behavior between token_next and token_next_by | Victor Uriarte | 2016-06-15 | 5 | -26/+26 | |
| | | | | | | | | | | | | 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 | 7 | -104/+104 | |
| | | | ||||||
| * | | Remove functions no-longer used | Victor Uriarte | 2016-06-15 | 2 | -63/+0 | |
| | | | ||||||
| * | | Change token_ funcs to token_idx funcs | Victor Uriarte | 2016-06-15 | 7 | -137/+167 | |
| | | | ||||||
| * | | Change argument order to match order of all other functions | Victor Uriarte | 2016-06-14 | 3 | -10/+9 | |
| | | | ||||||
| * | | Refactor _group_matching | Victor Uriarte | 2016-06-14 | 1 | -17/+13 | |
| | | | ||||||
| * | | Apply alt style for grouping left/right | Victor Uriarte | 2016-06-14 | 1 | -7/+9 | |
| | | | ||||||
| * | | Reapply fix for case within paranthesis | Victor Uriarte | 2016-06-14 | 2 | -9/+3 | |
| | | | ||||||
| * | | 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 | 5 | -73/+181 | |
| |\ \ | ||||||
| | * | | Use a specialized token_idx_next. | Sjoerd Job Postmus | 2016-06-12 | 2 | -4/+24 | |
| | | | | | | | | | | | | | | | | Prevent calling token_index. | |||||
| | * | | Index-based token_idx_prev | Sjoerd Job Postmus | 2016-06-12 | 2 | -8/+25 | |
| | | | | | | | | | | | | | | | | | | | | 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 | 2 | -6/+24 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 | 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. | |||||
* | | | | Add test_cli.py | Victor Uriarte | 2016-06-15 | 2 | -1/+48 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | References: http://stackoverflow.com/questions/18160078/how-do-you-write-tests-for-the-argparse-portion-of-a-python-module http://dustinrcollins.com/testing-python-command-line-apps https://github.com/mdklatt/cookiecutter-python-app | |||||
* | | | | Separate __main__ and main() to allow for testing | Victor Uriarte | 2016-06-15 | 3 | -136/+173 | |
| | | | | | | | | | | | | | | | | | | | | Also reference example in: https://github.com/ionelmc/cookiecutter-pylibrary | |||||
* | | | | Clarify `split` text processing on __init__.py | Victor Uriarte | 2016-06-15 | 1 | -2/+2 | |
| | | | | ||||||
* | | | | Correct argparse --version flag for py3. | Victor Uriarte | 2016-06-15 | 1 | -2/+7 | |
| | | | |