summaryrefslogtreecommitdiff
path: root/sqlparse
Commit message (Collapse)AuthorAgeFilesLines
* Refactor one-time use functionsVictor Uriarte2016-06-041-24/+3
|
* Allow tokenlists to skip over commentsVictor Uriarte2016-06-041-10/+13
| | | | Rename ignore_cm to skip_cm for consistency
* Clean-up code style sql.pyVictor Uriarte2016-06-041-35/+31
| | | | other items inside slots are already defined in parent class
* Clean Token/Tokenlist init'sVictor Uriarte2016-06-041-8/+3
|
* Clean-up rename variables in loops to token sql.pyVictor Uriarte2016-06-041-19/+19
|
* Simplify sql.py naming/aliasVictor Uriarte2016-06-041-19/+6
|
* Change pprint w new str format; can out to fileVictor Uriarte2016-06-041-14/+13
|
* Add unicode-str compatible cls decoratorVictor Uriarte2016-06-042-28/+19
|
* Refactor filtersVictor Uriarte2016-06-041-62/+45
|
* Refactor statement filterVictor Uriarte2016-06-041-38/+27
|
* Minor refactor statement filter and add commentsVictor Uriarte2016-06-041-10/+27
|
* Refactor filter-stack to simplify logicVictor Uriarte2016-06-043-39/+15
| | | | | | if (self.stmtprocess or self.postprocess or self.split_statements or self._grouping): always evaluates to true after removing unused features
* Remove as parameter stack in filter.processVictor Uriarte2016-06-043-22/+22
|
* Remove undocumented featuresVictor Uriarte2016-06-045-373/+1
| | | | | | These features/function/classes were added for AntiORM. Quick look-up didn't show any usage outside of AntiORM. Closes #246
* Rewrite regex to allow spaces between `name` and `.`Victor Uriarte2016-06-041-1/+5
|
* Clean regex for Number tokensVictor Uriarte2016-06-041-4/+6
|
* Simplify regex [^\W\d_]Victor Uriarte2016-06-041-6/+10
| | | | | | | | | | [^\W\d_] = [a-z] (when ignoring case) not( not (a-z, numbers, or _) or number or _ ) [(a-z or number or _) and not number and not _] [A-Z] Correct not null spacing
* Refactor regex Func/keyword exceptions togetherVictor Uriarte2016-06-041-5/+3
|
* Rewrite wildcard and placeholder regexVictor Uriarte2016-06-041-4/+7
|
* Improve Comment Regex and add Comment.Hint for OracleVictor Uriarte2016-06-041-4/+4
|
* Allow re to compile onceVictor Uriarte2016-06-042-12/+11
| | | | | Otherwise re will need to recompile everytime a call to tokenize is made.
* Simplify multi-line commentsVictor Uriarte2016-06-042-36/+9
|
* Correct Typo. Closes #222Victor Uriarte2016-06-041-1/+1
|
* 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
|