summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Preliminary test for a BYTES adapter.Daniele Varrazzo2019-01-181-1/+1
| | | | | Allow returning unparsed bytes from databases with mixed encodings. See issue #519.
* Merge remote-tracking branch ↵Daniele Varrazzo2018-12-271-1/+10
|\ | | | | | | 'eternalflow/execute-values-returning-clause-support'
| * Docs wordsmith for execute_values() fetch paramDaniele Varrazzo2018-12-271-2/+3
| |
| * Some harmless adjustments in execute_values() codeDaniele Varrazzo2018-12-271-3/+2
| | | | | | | | No optional result, and create the list only if requred.
| * rename param name to fetchIvan Kotelnikov2018-11-241-4/+4
| |
| * add RETURNING clause support in execute_values functionIvan Kotelnikov2018-11-211-1/+10
| |
* | Dropped deprecated PersistentConnectionPoolJon Dufresne2018-12-041-55/+0
|/ | | | | | | | | This class was deprecated in 27cd6c4880161a715b1952be64cc96ebc968fa2b (Dec 2, 2012), which was first included in release 2.5. Enough time has passed for library uses to find an alternative solution. This class was untested.
* Don't barf on Composite passed to execute_values()fix-794Daniele Varrazzo2018-10-231-0/+4
| | | | Close #794
* Full flake8 3.5 cleanupDaniele Varrazzo2018-10-235-9/+7
|
* Dropped duplicate classes in errors moduleDaniele Varrazzo2018-10-231-469/+244
| | | | Also using a more compact class registration using a decorator
* Merge branch 'connection-info'Daniele Varrazzo2018-10-155-8/+8
|\
| * Use the connection.info properties instead of the legacy methodsconnection-infoDaniele Varrazzo2018-10-134-7/+7
| |
| * Adding ConnectionInfo object documentationDaniele Varrazzo2018-10-121-1/+1
| | | | | | | | | | | | I'm still fought whether docs should be in the C module or in the .rst. I'd prefer the first because DRY, but writing multiline strings in C really sucks.
* | Merge branch 'master' into errors-moduleerrors-moduleDaniele Varrazzo2018-10-157-19/+63
|\ \
| * | errorcodes map update to PostgreSQL 11Daniele Varrazzo2018-10-141-0/+1
| |/
| * Merge branch 'master' into httpsDaniele Varrazzo2018-10-102-8/+51
| |\
| | * sql.Identifier can wrap a sequence of strings to represent qualified namesidentifier-sequenceDaniele Varrazzo2018-10-041-8/+38
| | | | | | | | | | | | Close #732.
| | * Faster check for empty range in str()Daniele Varrazzo2018-10-041-1/+1
| | |
| | * Implement __str__ for range typesMichel Albert2018-09-301-0/+13
| | |
| * | Prefer https:// URLs when availableJon Dufresne2018-09-225-9/+9
| |/
| * Improve doc for extras.wait_selectDaniel Hahler2018-09-051-2/+2
| |
* | Added errors.lookup() functionDaniele Varrazzo2018-10-151-0/+8
| |
* | Errors module content updated to Postgres 11Daniele Varrazzo2018-10-141-0/+6
| |
* | Generating the whole errors file from scriptDaniele Varrazzo2018-08-171-3/+1512
| |
* | Read exceptions to raise from a Python moduleDaniele Varrazzo2018-08-171-0/+16
|/
* DictCursor and RealDictCursor rows maintain columns orderDaniele Varrazzo2018-05-211-4/+30
| | | | Close #177.
* Restored methods iter*() on dict cursors rowsDaniele Varrazzo2018-05-211-9/+24
|
* Merge branch 'master' into drop-2to3Daniele Varrazzo2018-05-202-2/+15
|\
| * Merge branch 'master' into encrypt-passDaniele Varrazzo2018-05-201-3/+6
| |\
| | * Allow non-ascii chars in namedtuple fieldsDaniele Varrazzo2018-05-181-3/+6
| | | | | | | | | | | | | | | | | | | | | They can be valid chars in Python 3. Or maybe not? In which case Python will throw an exception, but that's fine. Fix regression introduced fixing #211
| * | Merge branch 'master' into masterAshesh Vashi2018-05-088-187/+47
| |\ \ | | |/
| | * Convert fields names into valid Python identifiers in NamedTupleCursorDaniele Varrazzo2018-01-291-1/+11
| | | | | | | | | | | | Close #211.
| * | Moving the encrypt_password method from the connection class to theAshesh Vashi2017-09-141-1/+1
| | | | | | | | | | | | | | | psycopgmodule, and exported it from psycopg2.extensions as per review comments.
* | | Drop 2to3 build step; make all code compatible with all PythonsJon Dufresne2017-12-118-22/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Drop the Python 2 style interface from DictRowJon Dufresne2017-12-111-22/+3
| | | | | | | | | | | | | | | Now standardizes on the Python 3 interface for all uses. Makes behavior of DictRow between Pythons more consistent and predictable.
* | | User super() throughout DictRow classJon Dufresne2017-12-111-4/+4
| |/ |/| | | | | Avoid calling parent method directly.
* | Drop long deprecated function register_tstz_w_secs()Jon Dufresne2017-12-101-12/+0
| | | | | | | | | | | | | | | | | | | | Deprecated in commit b263fbf274f9085a1bddca018ed8a50d37023fc7 on 2010-01-13. The deprecation warning was first released in version 2.2.2. The function used to register an alternate type caster for TIMESTAMP WITH TIME ZONE to deal with historical time zones with seconds in the UTC offset. These are now correctly handled by the default type caster, so currently the function doesn't do anything.
* | Dropped psycopg1 modulegoodbye-psycopg1Daniele Varrazzo2017-12-041-96/+0
| |
* | Use builtin function next() throughout projectJon Dufresne2017-12-012-7/+7
| | | | | | | | | | | | | | 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
* | Use dict comprehensionsDaniele Varrazzo2017-11-282-6/+3
| |
* | Documentation tweaked to omit Python 2.6 distinctionsDaniele Varrazzo2017-11-281-6/+6
| |
* | Remove redundant parenthesesHugo2017-11-283-3/+3
| |
* | __slots__ should be a tupleHugo2017-11-281-1/+1
| |
* | Update documentation to reflect JSON import behaviorJon Dufresne2017-11-281-4/+2
| | | | | | | | | | | | | | | | The docs don't need to describe what will happen on Python versions before 2.6 as they are unsupported by psycopg2. Should have been included in commit d58844e5483483240f97537e9a77b4e79cea2ab3, but was missed.
* | Merge branch 'python3_mintimeloggingconnection'Daniele Varrazzo2017-11-281-0/+2
|\ \
| * | Patch for issue #609 for MinTimeLoggingConnectionKevin Campbell2017-11-031-0/+2
| |/ | | | | | | | | On Python3 MinTimeLoggingConnection raises an exception as it tries to mix strings and bytes
* | Merge remote-tracking branch 'jdufresne/decimal'Daniele Varrazzo2017-11-281-8/+4
|\ \
| * | Remove workaround for decimal moduleJon Dufresne2017-11-261-8/+4
| | | | | | | | | | | | | | | | | | | | | | | | The decimal module is available on all Python versions supported by psycopg2. It has been available since Python 2.4. No need to catch an ImportError. https://docs.python.org/2/library/decimal.html
* | | Merge remote-tracking branch 'jdufresne/json'Daniele Varrazzo2017-11-281-28/+4
|\ \ \
| * | | Clean up JSON workarounds for unsupported Python versionsJon Dufresne2017-11-261-28/+4
| |/ / | | | | | | | | | | | | | | | All Python versions supported by psycopg2 have the json module. It was added in Python 2.6. Can remove checks for availability, slightly simplifying the code.