Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Prefer https:// URLs when available | Jon Dufresne | 2018-09-22 | 1 | -3/+3 |
| | |||||
* | Improve doc for extras.wait_select | Daniel Hahler | 2018-09-05 | 1 | -2/+2 |
| | |||||
* | DictCursor and RealDictCursor rows maintain columns order | Daniele Varrazzo | 2018-05-21 | 1 | -4/+30 |
| | | | | Close #177. | ||||
* | Restored methods iter*() on dict cursors rows | Daniele Varrazzo | 2018-05-21 | 1 | -9/+24 |
| | |||||
* | Merge branch 'master' into drop-2to3 | Daniele Varrazzo | 2018-05-20 | 1 | -1/+14 |
|\ | |||||
| * | Allow non-ascii chars in namedtuple fields | Daniele Varrazzo | 2018-05-18 | 1 | -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 | ||||
| * | Convert fields names into valid Python identifiers in NamedTupleCursor | Daniele Varrazzo | 2018-01-29 | 1 | -1/+11 |
| | | | | | | | | Close #211. | ||||
* | | Drop 2to3 build step; make all code compatible with all Pythons | Jon Dufresne | 2017-12-11 | 1 | -7/+7 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 DictRow | Jon Dufresne | 2017-12-11 | 1 | -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 class | Jon Dufresne | 2017-12-11 | 1 | -4/+4 |
|/ | | | | Avoid calling parent method directly. | ||||
* | Drop long deprecated function register_tstz_w_secs() | Jon Dufresne | 2017-12-10 | 1 | -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. | ||||
* | Use builtin function next() throughout project | Jon Dufresne | 2017-12-01 | 1 | -6/+6 |
| | | | | | | | 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 | ||||
* | Remove redundant parentheses | Hugo | 2017-11-28 | 1 | -1/+1 |
| | |||||
* | __slots__ should be a tuple | Hugo | 2017-11-28 | 1 | -1/+1 |
| | |||||
* | Merge branch 'python3_mintimeloggingconnection' | Daniele Varrazzo | 2017-11-28 | 1 | -0/+2 |
|\ | |||||
| * | Patch for issue #609 for MinTimeLoggingConnection | Kevin Campbell | 2017-11-03 | 1 | -0/+2 |
| | | | | | | | | | | On Python3 MinTimeLoggingConnection raises an exception as it tries to mix strings and bytes | ||||
* | | Remove workarounds for namedtuple on Python <= 2.5 | Jon Dufresne | 2017-11-26 | 1 | -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 project | Jon Dufresne | 2017-11-20 | 1 | -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 Varrazzo | 2017-08-31 | 1 | -6/+11 |
| | | | | With bonus typos dropped. | ||||
* | Note that the fast executemany functions don't respect rowcount | Daniele Varrazzo | 2017-03-28 | 1 | -0/+6 |
| | | | | See issue #540 | ||||
* | Stop a docstring generating a warning | Daniele Varrazzo | 2017-02-07 | 1 | -1/+1 |
| | | | | Valid reST, slightly less valid Python. | ||||
* | Further minimal performance tweaks to execute_valuesfast-executemany | Daniele Varrazzo | 2017-02-02 | 1 | -5/+6 |
| | |||||
* | Avoid an useless encode/decode roundtrip in execute_values() | Daniele Varrazzo | 2017-02-02 | 1 | -4/+44 |
| | | | | Tests moved into a separate module. | ||||
* | Better docs for fast executemany functions. | Daniele Varrazzo | 2017-02-02 | 1 | -15/+31 |
| | | | | Issue #502. | ||||
* | Fixed execute_values with unicode | Daniele Varrazzo | 2017-02-01 | 1 | -1/+1 |
| | | | | Also added unicode tests. | ||||
* | Fixed fast execute functions with Python 3 | Daniele Varrazzo | 2017-02-01 | 1 | -2/+4 |
| | |||||
* | Added execute_batch and execute_values functions | Daniele Varrazzo | 2017-02-01 | 1 | -0/+80 |
| | |||||
* | Fix DeprecationWarning: generator '__iter__' raised StopIterationfix-iter-warning | NotSqrt | 2017-01-04 | 1 | -20/+26 |
| | | | | Closes #498 | ||||
* | Don't try to write bytes in the LoggingConnection file | Daniele Varrazzo | 2016-12-29 | 1 | -0/+2 |
| | | | | Close #483 | ||||
* | Fix "invalid escape sequence" warning in Python 3.6 | Tim Graham | 2016-12-25 | 1 | -1/+1 |
| | | | | http://bugs.python.org/issue27364 | ||||
* | Added ipaddress objects conversion | Daniele Varrazzo | 2016-10-11 | 1 | -0/+4 |
| | | | | Close #387 | ||||
* | inet adapters deprecated | Daniele Varrazzo | 2016-10-11 | 1 | -0/+5 |
| | | | | Close #343 | ||||
* | Python source cleanup using flake8 | Daniele Varrazzo | 2016-10-11 | 1 | -37/+63 |
| | |||||
* | Dropped use of b() "macro" and 2to3 fixer | Daniele Varrazzo | 2016-08-15 | 1 | -9/+8 |
| | | | | Just use the b"" strings syntax supported from python 2.6. | ||||
* | Move replication-related imports to extras.py | Oleksandr Shulgin | 2016-03-08 | 1 | -4/+4 |
| | |||||
* | Use python-defined make_dsn() for ReplicationConnection class | Oleksandr Shulgin | 2016-03-08 | 1 | -13/+2 |
| | |||||
* | Move replication connection to C level. | Oleksandr Shulgin | 2015-10-27 | 1 | -46/+11 |
| | |||||
* | Move the `decode` parameter to `start_replication()`. | Oleksandr Shulgin | 2015-10-23 | 1 | -2/+2 |
| | | | | | It makes more sense this way, because otherwise it must be passed to every call of `read_message()`. | ||||
* | Add quick start to the replication doc, minor doc fixes. | Oleksandr Shulgin | 2015-10-20 | 1 | -1/+1 |
| | |||||
* | Properly subclass ReplicationCursor on C level. | Oleksandr Shulgin | 2015-10-19 | 1 | -6/+4 |
| | |||||
* | Replace stop_replication with requirement for an exception. | Oleksandr Shulgin | 2015-10-19 | 1 | -0/+12 |
| | |||||
* | Fix async replication and test. | Oleksandr Shulgin | 2015-10-15 | 1 | -3/+4 |
| | |||||
* | Use quote_ident from psycopg2.extensions | Oleksandr Shulgin | 2015-10-15 | 1 | -11/+7 |
| | |||||
* | Merge branch 'master' into feature/replication-protocol | Oleksandr Shulgin | 2015-10-15 | 1 | -9/+14 |
|\ | |||||
| * | The wait_select callback can cancel a query using Ctrl-C | Daniele Varrazzo | 2015-10-01 | 1 | -9/+14 |
| | | | | | | | | Fixes #333. | ||||
* | | Remove IDENTIFY_SYSTEM wrapper method (it can't work with async anyway). | Oleksandr Shulgin | 2015-10-13 | 1 | -8/+1 |
| | | |||||
* | | Rework replication connection/cursor classes | Oleksandr Shulgin | 2015-10-01 | 1 | -5/+4 |
| | | |||||
* | | Use parse_dsn in ReplicationConnectionBase | Oleksandr Shulgin | 2015-10-01 | 1 | -15/+10 |
| | | |||||
* | | Update replication connection/cursor interface and docs. | Oleksandr Shulgin | 2015-10-01 | 1 | -47/+74 |
| | | |||||
* | | Cleanup start replication wrt. slot type a bit. | Oleksandr Shulgin | 2015-10-01 | 1 | -25/+26 |
| | |