Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | 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 | |
| | ||||||
* | 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. |