summaryrefslogtreecommitdiff
path: root/sqlparse/utils.py
Commit message (Collapse)AuthorAgeFilesLines
* add backtick to remove_quotes character listLong Le Xich2022-08-241-1/+1
|
* Update copyright notice.Andi Albrecht2020-10-071-1/+1
|
* Remove support for end-of-life PythonsJon Dufresne2020-08-311-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Python 2.7 and 3.4 are end-of-life. They are no longer receiving bug fixes, including for security issues. Python 2.7 went EOL on 2020-01-01 and 3.4 on 2019-03-18. For additional details on support Python versions, see: Supported: https://devguide.python.org/#status-of-python-branches EOL: https://devguide.python.org/devcycle/#end-of-life-branches Removing support for EOL Pythons will reduce testing and maintenance resources while allowing the library to move towards modern Python 3. Using pypinfo, we can show the PyPI download statistics, showing less than 10% of users are using Python 2.7. | python_version | percent | download_count | | -------------- | ------: | -------------: | | 3.7 | 45.36% | 3,056,010 | | 3.6 | 26.46% | 1,782,778 | | 3.8 | 12.22% | 823,213 | | 2.7 | 9.97% | 671,459 | | 3.5 | 5.86% | 394,846 | | 3.4 | 0.10% | 6,700 | | 3.9 | 0.03% | 2,346 | | 2.6 | 0.00% | 57 | | 3.3 | 0.00% | 21 | | 3.10 | 0.00% | 6 | | Total | | 6,737,436 | Library users who continue to use Python 2.7 will still be able to install previous versions of sqlparse. Compatibility shims have been dropped, simplifying the code. Using pyupgrade, the codebase has been updated to take advantage of modern syntax <https://github.com/asottile/pyupgrade>. The wheel is no longer marked as "universal" as it is now Python 3 only.
* Update copyright header (fixes #372).Andi Albrecht2018-07-311-1/+2
|
* Use generator expression to avoid unnecessary temporary listJon Dufresne2017-04-291-2/+2
|
* Correct license link (fixes #288).Andi Albrecht2016-09-141-1/+1
|
* Remove functions no-longer usedVictor Uriarte2016-06-151-12/+0
|
* Merge remote-tracking branch 'core/long_live_indexes' into developVictor Uriarte2016-06-141-1/+1
|\
| * Replace _group_matching with an inward-out grouping algorithmSjoerd Job Postmus2016-06-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | 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.
* | Refactor raw conversion on split_unquoted_newlinesVictor Uriarte2016-06-121-1/+3
| |
* | Updating Utilities for clarity and fix tokentype behaviorVictor Uriarte2016-06-111-10/+10
| |
* | Remove undocumented featuresVictor Uriarte2016-06-041-70/+1
| | | | | | | | | | | | These features/function/classes were added for AntiORM. Quick look-up didn't show any usage outside of AntiORM. Closes #246
* | Add or Update copyright year to filesVictor Uriarte2016-06-041-0/+7
|/
* Add group matching M_tokens and refactor group matchingVictor Uriarte2016-05-101-1/+1
| | | | remove slots in subclasses
* Introduce @recurse to refactor recursionVictor Uriarte2016-05-101-0/+5
|
* Update compat and utilsVictor Uriarte2016-05-101-7/+81
|
* Remove conditional for OrderedDict.Andi Albrecht2015-10-261-46/+24
| | | | All supported Python versions have OrderedDict.
* Cleanup module code.Andi Albrecht2015-10-261-2/+2
|
* Improved sqlparse.utils.split_unquoted_newlines()Michael Schuller2014-07-311-40/+38
| | | | | I've modified this function to use a regular expression for most of the work. This makes it much, much faster, especially for large queries.
* Fix SerializerUnicode to split unquoted newlinesMichael Schuller2014-03-101-0/+43
| | | | | | | This provides a fix to issue #131. The `split_unquoted_newlines()` function added to the utils module handles the splitting of the string by performing a simple iteration of the string passed in and splitting on unquoted CR, LF, or CR+LFs as they are found.
* Fixed bug on __getitem__ (infinite loop because pop() use it already)Jesús Leganés Combarro "Piranna"2012-05-191-2/+3
|
* I always forget to remove the prints for testing... :-PJesús Leganés Combarro "Piranna"2012-05-191-1/+0
|
* Improved cache systemJesús Leganés Combarro "Piranna"2012-05-191-7/+55
|
* Fixed regression thanks to idea from functools.lru_cache()Jesús Leganés Combarro "Piranna"2012-05-191-1/+2
|
* Merge branch 'master' into antiormJesús Leganés Combarro "Piranna"2012-05-191-0/+1
| | | | | Conflicts: sqlparse/filters.py
* Added limit to cacheJesús Leganés Combarro "Piranna"2012-05-191-2/+7
|
* Added memoize_generator and use it on IncludeStatementJesús Leganés Combarro "Piranna"2012-05-171-0/+41