summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Convert fields names into valid Python identifiers in NamedTupleCursorDaniele Varrazzo2018-01-291-1/+11
| | | | Close #211.
* 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.
* | | Remove workarounds for namedtuple on Python <= 2.5Jon Dufresne2017-11-261-16/+5
|/ / | | | | | | | | | | namedtuple is available on all Python versions supported by psycopg2. It was first introduced in Python 2.6. Can remove all workarounds and special documentation.
* | Use modern except syntax throughout projectJon Dufresne2017-11-201-1/+1
|/ | | | | | The syntax "except Exception, exc:" is deprecated. All Python versions supported by psycopg2 support the newer, modern syntax. Forward compatible with future Python versions.
* Construct proper human sentences to describe execute_values()Daniele Varrazzo2017-08-311-6/+11
| | | | With bonus typos dropped.
* Use an import style reported not broken on Python 3.6Daniele Varrazzo2017-06-173-4/+4
| | | | Couldn't reproduce the issue but it has been documented in #550.
* Added Json.prepare()fix-562Daniele Varrazzo2017-06-161-1/+8
| | | | Close #562
* Error codes updated to PG 10 beta 1Daniele Varrazzo2017-06-051-0/+3
|
* errcodes updated to PG 9.6Daniele Varrazzo2017-06-051-0/+5
|
* Note that the fast executemany functions don't respect rowcountDaniele Varrazzo2017-03-281-0/+6
| | | | See issue #540
* Expose *DATETIMETZ* objects in the extensions moduleDaniele Varrazzo2017-03-221-4/+4
|
* 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.
* Ignore None arguments passed to make_dsn()fix-517Daniele Varrazzo2017-03-011-0/+3
| | | | Close #517.
* connection.isolation_level is now writableDaniele Varrazzo2017-02-161-1/+1
|
* Stop a docstring generating a warningDaniele Varrazzo2017-02-071-1/+1
| | | | Valid reST, slightly less valid Python.
* Exposing ISOLATION_LEVEL_DEFAULT to PythonDaniele Varrazzo2017-02-041-0/+1
| | | | | This is now the state that is returned to Python if nothing has been explicitly set.
* Merge branch 'master' into sql-composesql-composeDaniele Varrazzo2017-02-032-24/+175
|\
| * Merge branch 'async-keyword'Daniele Varrazzo2017-02-031-4/+10
| |\ | | | | | | | | | Close #495
| | * Added async_ as an alias for asyncDaniele Varrazzo2017-02-031-4/+10
| | | | | | | | | | | | | | | Added in argument for psycopg2.connect() and connection.__init__, and for the connection.async attribute.
| * | Further minimal performance tweaks to execute_valuesfast-executemanyDaniele Varrazzo2017-02-021-5/+6
| | |
| * | Avoid an useless encode/decode roundtrip in execute_values()Daniele Varrazzo2017-02-021-4/+44
| | | | | | | | | | | | Tests moved into a separate module.
| * | Better docs for fast executemany functions.Daniele Varrazzo2017-02-021-15/+31
| | | | | | | | | | | | Issue #502.
| * | Fixed execute_values with unicodeDaniele Varrazzo2017-02-011-1/+1
| | | | | | | | | | | | Also added unicode tests.
| * | Fixed fast execute functions with Python 3Daniele Varrazzo2017-02-011-2/+4
| | |
| * | Added execute_batch and execute_values functionsDaniele Varrazzo2017-02-011-0/+80
| |/
| * Fix DeprecationWarning: generator '__iter__' raised StopIterationfix-iter-warningNotSqrt2017-01-041-20/+26
| | | | | | | | Closes #498
* | 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
| |