summaryrefslogtreecommitdiff
path: root/lib/sql.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix representation of sql.Placeholder2_9_1Daniele Varrazzo2021-06-171-1/+4
| | | | | Fix also Placeholder tests, including an error which made an assert always true, which made us miss the regression in #1291.
* Fix regression with named `sql.Placeholder`Daniele Varrazzo2021-06-161-1/+1
| | | | Close #1291.
* Copyright year updated to 2021Daniele Varrazzo2021-06-151-1/+1
| | | | | ag -l Copyright | xargs sed -i \ "s/\(.*copyright (C) [0-9]\+\)\(-[0-9]\+\)\?\(.*Psycopg Team.*\)/\1-$(date +%Y)\3/I"
* Unbreak f-string wrong replacementsDaniele Varrazzo2021-05-201-1/+1
|
* Upgrade f-strings with flyntHugo van Kemenade2020-11-171-9/+6
|
* Upgrade Python syntax with pyupgrade --py36-plusHugo van Kemenade2020-11-171-9/+9
|
* Drop support for EOL Python 2.7Hugo van Kemenade2020-11-171-6/+5
|
* Copyright bumped to 2020Daniele Varrazzo2020-01-171-0/+1
|
* Use PY2, PY3 for conditional code instead of sys.version_infoDaniele Varrazzo2019-03-161-3/+2
|
* Fix typoDavid Fischer2019-02-261-1/+1
|
* Copyright year updatedDaniele Varrazzo2019-02-171-1/+1
| | | | | ag -l Copyright | xargs sed -i \ "s/\(.*copyright (C) [0-9]\+\)\(-[0-9]\+\)\?\(.*\)/\1-$(date +%Y)\3/I"
* sql.Identifier can wrap a sequence of strings to represent qualified namesidentifier-sequenceDaniele Varrazzo2018-10-041-8/+38
| | | | Close #732.
* Drop 2to3 build step; make all code compatible with all PythonsJon Dufresne2017-12-111-4/+5
| | | | | | | | | | | | | | | | Make all library code compatible with both Python 2 and Python 3. Helps move to modern Python idioms. Can now write for Python 3 (with workarounds for Python 2) instead of the other way around. In the future, when it is eventually time to drop Python 2, the library will be in a better position to remove workarounds Added a very small comparability module compat.py where required. It includes definitions for: - text_type -- A type. str on Python 3. unicode on Python 2. - string_types -- A tuple. Contains only str on Python 3. Contains str & unicode on Python 2.
* Use builtin function next() throughout projectJon Dufresne2017-12-011-1/+1
| | | | | | | Available since Python 2.6. Use of .next() is deprecated and not supported in Python 3. Forward compatible with modern Python. https://docs.python.org/2/library/functions.html#next
* Documentation tweaked to omit Python 2.6 distinctionsDaniele Varrazzo2017-11-281-6/+6
|
* Dropped repeated doc links in the same paragraphDaniele Varrazzo2017-03-161-6/+6
| | | | And some more sql docs cleanup.
* Added docs about the usability of sql objects with copy_expert()sql-copyDaniele Varrazzo2017-03-161-5/+6
| | | | See issue #529.
* Added test to verify sql objects work with copy_expert()Daniele Varrazzo2017-03-161-1/+1
| | | | | | I'll be honest: I lucked out, I didn't think about this combination. But maybe sheer luck, maybe using common code paths, it just works. Let's make it stays so.
* Autonumbered args not available in Python 2.6Daniele Varrazzo2017-01-031-7/+7
|
* Several improvements to the sql objectsDaniele Varrazzo2017-01-031-76/+95
| | | | Comparable, iterable, content accessible
* Use {} instead of %s placeholders in SQL compositionDaniele Varrazzo2017-01-031-135/+84
|
* More doc love for the sql moduleDaniele Varrazzo2017-01-011-19/+39
|
* sql module docs wordsmithingDaniele Varrazzo2017-01-011-4/+4
|
* Dropped sql.composeDaniele Varrazzo2017-01-011-16/+28
| | | | Use a SQL % operator instead.
* Adding sql module documentationDaniele Varrazzo2017-01-011-24/+147
|
* Typo: composible -> composableDaniele Varrazzo2017-01-011-10/+10
|
* Fixed sql.compose with no args and added testsDaniele Varrazzo2017-01-011-4/+4
|
* Fixed sql.Composed representationDaniele Varrazzo2017-01-011-1/+1
|
* Fixed sql stuff in Py3Daniele Varrazzo2017-01-011-9/+15
|
* Added sql.compose() implementationDaniele Varrazzo2017-01-011-2/+98
|
* Added basic sql module implementationDaniele Varrazzo2017-01-011-0/+174
|
* Adding some boilerplate for the new moduleDaniele Varrazzo2017-01-011-0/+25