summaryrefslogtreecommitdiff
path: root/sqlparse
Commit message (Collapse)AuthorAgeFilesLines
...
* | Remove default values from dict.get(...)Victor Uriarte2016-06-041-13/+12
| | | | | | | | Default is already Null/False
* | Add or Update copyright year to filesVictor Uriarte2016-06-0413-14/+63
| |
* | Code cleanup.Andi Albrecht2016-06-031-1/+2
| |
* | Merge pull request #248 from fimmtiu/add-wrap-after-optionAndi Albrecht2016-06-032-4/+21
|\ \ | | | | | | Add --wrap_after option for wrapping identifier lists.
| * | Add --wrap_after option for wrapping identifier lists.Dennis Taylor2016-06-022-4/+21
| |/
* | Merge pull request #243 from vmuriart/refactor_lexer.pyAndi Albrecht2016-06-033-335/+122
|\ \ | | | | | | Refactor lexer.py
| * | Replace iter(range(len(...))) with enumerateVictor Uriarte2016-06-022-7/+4
| | |
| * | Pass encoding into lexer as a parameterVictor Uriarte2016-06-021-7/+4
| | |
| * | Simplify handling of encoding in lexer.pyVictor Uriarte2016-05-291-22/+10
| | |
| * | Remove encoding guessing on lexer.pyVictor Uriarte2016-05-291-11/+1
| | |
| * | Refactor lexer.tokens_unprocessedVictor Uriarte2016-05-291-60/+27
| | | | | | | | | | | | | | | | | | | | | Remove unused return pos Remove redundant streamer func Remove unreached else statement Clean-up Lexer tokenization
| * | Bid Adieu to metaclassVictor Uriarte2016-05-292-55/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The singleton pattern isn't applicable since only one language is being implemented. Simplify Lexer initialization. Fix compat func `u` on Py3. Signature didn't match Py2. Feature isn't used yet.
| * | Merge process_state and __call__Victor Uriarte2016-05-291-34/+16
| | | | | | | | | | | | | | | | | | | | | | | | Other Changes: Only #pop state is used by multiline comments. Remove unused states Simplify RegEx compilation RegEx Exception too generic
| * | Merge process_tokendef and __call__Victor Uriarte2016-05-291-16/+6
| | | | | | | | | | | | Remove unused token_variants
| * | Remove assert statements from lexer.pyVictor Uriarte2016-05-291-19/+0
| | |
| * | Remove undocumented ws handlers from lexer.pyVictor Uriarte2016-05-291-15/+2
| | | | | | | | | | | | | | | Removing nl before tokenizing breaks comments (stripnl/stripall) Remove tab-expansion.
| * | Remove unused func/class/args in lexer.pyVictor Uriarte2016-05-291-60/+3
| | | | | | | | | | | | | | | | | | Remove unused apply_filters from lexer.py Remove unused filters function from lexer.py Remove unused arguments get_tokens func
| * | Refactor var Lexer.tokens & func is_keywordVictor Uriarte2016-05-292-68/+70
| |/
* | Remove redundant functionsVictor Uriarte2016-06-022-16/+2
| |
* | Refactor format function signatureVictor Uriarte2016-06-021-2/+1
| | | | | | | | easier way to get encoding variable
* | Update TokenType magic methods (contains, getattr, repr)Victor Uriarte2016-06-021-8/+7
| | | | | | | | | | Variables were renamed to keep with convention getattr call to tuple (super) is unnecessary.
* | Remove unused code from tokens.pyVictor Uriarte2016-06-021-14/+0
| |
* | Fix flake8 stylingVictor Uriarte2016-05-293-5/+6
| |
* | Fix unicode comparison warningVictor Uriarte2016-05-291-2/+2
| |
* | Change old-style class to new-styleVictor Uriarte2016-05-292-14/+14
| | | | | | | | | | py3 interpreted old code as new-style classes. py2 should match its behavior.
* | Remove unused hash function from tokens.pyVictor Uriarte2016-05-291-3/+0
|/
* CREATE TABLE should not be parsed as FunctionTenghuan2016-05-291-0/+9
|
* Merge pull request #236 from koljonen/using_directly_followed_by_parenthesisAndi Albrecht2016-05-281-0/+1
|\ | | | | Recognize USING as a keyword in 'USING(', not just in 'USING ('
| * Don't call is_keyword for the new 'USING(' regexkoljonen2016-05-151-1/+1
| |
| * Recognize USING as a keyword in 'USING(', not just in 'USING ('koljonen2016-05-141-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 documentationDag Wieers2016-05-261-2/+2
| |
* | refactor group_commentsVictor Uriarte2016-05-111-15/+9
| |
* | refactor sql.py functionsVictor Uriarte2016-05-112-85/+31
| |
* | separate identifier grouping into its componentsVictor Uriarte2016-05-101-77/+50
| | | | | | | | | | leaving sql.Operations in for future PR small behavior changed for invalid identifier
* | refactor identifier list and alias groupingVictor Uriarte2016-05-101-62/+26
| |
* | refactor remove quotesVictor Uriarte2016-05-101-11/+3
| |
* | refactor _group_left_rightVictor Uriarte2016-05-101-64/+39
| |
* | group all the one-offsVictor Uriarte2016-05-101-31/+21
| |
* | Add group matching M_tokens and refactor group matchingVictor Uriarte2016-05-103-110/+38
| | | | | | | | remove slots in subclasses
* | Introduce @recurse to refactor recursionVictor Uriarte2016-05-102-11/+12
| |
* | generalize group_tokens for more use casesVictor Uriarte2016-05-102-19/+29
| |
* | adding powerful _token_matching and imt helperVictor Uriarte2016-05-101-6/+30
| |
* | update sqlVictor Uriarte2016-05-101-8/+8
| |
* | Update compat and utilsVictor Uriarte2016-05-102-13/+98
|/
* Improve identifier parsing when identifier is a literal combined with order ↵Andi Albrecht2016-04-061-0/+2
| | | | keyword (fixes #101).
* Fix #230 (function comparison grouping)saaj2016-04-051-1/+2
|
* Code cleanup.Andi Albrecht2016-04-033-33/+28
|
* Token keyword correctionCauê Beloni2016-03-291-1/+1
|
* Ensure get_type() works for queries that use WITH.Andrew Tipton2016-03-023-1/+14
|
* Add keyword 'SEQUENCE'Shen Longxing2015-12-221-0/+1
| | | For now, sqlparse does not support 'create sequence' statement. Add keyword 'SEQUENCE' to support it.