summaryrefslogtreecommitdiff
path: root/lib/extras.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix DeprecationWarning: generator '__iter__' raised StopIterationfix-iter-warningNotSqrt2017-01-041-20/+26
| | | | Closes #498
* Don't try to write bytes in the LoggingConnection fileDaniele Varrazzo2016-12-291-0/+2
| | | | Close #483
* Fix "invalid escape sequence" warning in Python 3.6Tim Graham2016-12-251-1/+1
| | | | http://bugs.python.org/issue27364
* Added ipaddress objects conversionDaniele Varrazzo2016-10-111-0/+4
| | | | Close #387
* inet adapters deprecatedDaniele Varrazzo2016-10-111-0/+5
| | | | Close #343
* Python source cleanup using flake8Daniele Varrazzo2016-10-111-37/+63
|
* Dropped use of b() "macro" and 2to3 fixerDaniele Varrazzo2016-08-151-9/+8
| | | | Just use the b"" strings syntax supported from python 2.6.
* Move replication-related imports to extras.pyOleksandr Shulgin2016-03-081-4/+4
|
* Use python-defined make_dsn() for ReplicationConnection classOleksandr Shulgin2016-03-081-13/+2
|
* Move replication connection to C level.Oleksandr Shulgin2015-10-271-46/+11
|
* Move the `decode` parameter to `start_replication()`.Oleksandr Shulgin2015-10-231-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 Shulgin2015-10-201-1/+1
|
* Properly subclass ReplicationCursor on C level.Oleksandr Shulgin2015-10-191-6/+4
|
* Replace stop_replication with requirement for an exception.Oleksandr Shulgin2015-10-191-0/+12
|
* Fix async replication and test.Oleksandr Shulgin2015-10-151-3/+4
|
* Use quote_ident from psycopg2.extensionsOleksandr Shulgin2015-10-151-11/+7
|
* Merge branch 'master' into feature/replication-protocolOleksandr Shulgin2015-10-151-9/+14
|\
| * The wait_select callback can cancel a query using Ctrl-CDaniele Varrazzo2015-10-011-9/+14
| | | | | | | | Fixes #333.
* | Remove IDENTIFY_SYSTEM wrapper method (it can't work with async anyway).Oleksandr Shulgin2015-10-131-8/+1
| |
* | Rework replication connection/cursor classesOleksandr Shulgin2015-10-011-5/+4
| |
* | Use parse_dsn in ReplicationConnectionBaseOleksandr Shulgin2015-10-011-15/+10
| |
* | Update replication connection/cursor interface and docs.Oleksandr Shulgin2015-10-011-47/+74
| |
* | Cleanup start replication wrt. slot type a bit.Oleksandr Shulgin2015-10-011-25/+26
| |
* | Rework replication protocolOleksandr Shulgin2015-06-301-17/+19
| | | | | | | | | | | | | | | | | | This change exposes lower level functions for operating the (logical) replication protocol, while keeping the high-level start_replication function that does all the job for you in case of a synchronous connection. A number of other changes and fixes are put into this commit.
* | Expose ReplicationMessage type in extrasOleksandr Shulgin2015-06-111-2/+3
| |
* | Fix logical decoding plugin options adaptation on python3Oleksandr Shulgin2015-06-101-1/+1
| |
* | Add ReplicationMessage objectOleksandr Shulgin2015-06-051-0/+4
| |
* | Improve identify_system: don't hardcode column namesOleksandr Shulgin2015-06-021-1/+1
| |
* | Add support for streaming replication protocolOleksandr Shulgin2015-06-011-0/+138
|/ | | | | | | | | | | | Introduce ReplicationConnection and ReplicationCursor classes, that incapsulate initiation of special type of PostgreSQL connection and handling of special replication commands only available in this special connection mode. The handling of stream of replication data from the server is modelled largely after the existing support for "COPY table TO file" command and pg_recvlogical tool supplied with PostgreSQL (though, it can also be used for physical replication.)
* Fixed MinTimeLoggingCursor.callproc()andrew deryabin2015-05-031-1/+1
|
* Add register_default_jsonb() and register the typeDaniele Varrazzo2014-08-131-1/+2
|
* Fix multiple misspellingsPiotr Kasprzyk2013-04-261-3/+3
|
* The UUID adapter returns bytes instead of str in Python 3Daniele Varrazzo2013-04-071-6/+8
| | | | Also added __conform__ method to the adapter.
* Dropped __all__ from modulesDaniele Varrazzo2013-04-071-32/+28
| | | | | | They were only used to generate docs with Epydoc, now largely forgotten. Imports in extras cleaned up to expose the API only.
* Fixed pickling of DictRow objects tooDaniele Varrazzo2012-12-111-1/+8
|
* Fixed pickling of RealDictRow objectsDaniele Varrazzo2012-12-101-0/+7
|
* Fixed empty strings handling in composite casterDaniele Varrazzo2012-12-031-2/+2
| | | | Closes ticket #141.
* Using super() in the connection/cursor subclassesDaniele Varrazzo2012-09-281-29/+28
| | | | | This opens to collaborative subclassing (e.g. you may want to have a logging namedtuple cursor...)
* Merge branch 'range-type' into develDaniele Varrazzo2012-09-271-0/+7
|\
| * NumberRange renamed to NumericRangeDaniele Varrazzo2012-09-231-1/+1
| | | | | | | | | | | | I was avoiding Numeric to avoid conflicting with the 'numeric' Postgres type, which is an alias for 'decimal'. But now that there is a single numeric range I can use the preferred name
| * Dropped Range classes for specific numeric typesDaniele Varrazzo2012-09-231-1/+0
| |
| * Added first implementation of Range type, adapter, typecasterDaniele Varrazzo2012-09-231-0/+7
| |
* | Merge branch 'json' into develDaniele Varrazzo2012-09-271-0/+7
|\ \
| * | Added register_default_json() functionDaniele Varrazzo2012-09-191-1/+1
| | | | | | | | | | | | Register a typecaster for PostgreSQL 9.2 json.
| * | Added json typecasterDaniele Varrazzo2012-09-191-55/+6
| | |
| * | Added Json adapterDaniele Varrazzo2012-09-191-0/+55
| |/
* | Merge branch 'composite-custom' into develDaniele Varrazzo2012-09-271-39/+29
|\ \
| * | Added schema attribute to CompositeCasterDaniele Varrazzo2012-09-221-2/+3
| | |
| * | Info about versions history moved from code to docsDaniele Varrazzo2012-09-221-6/+0
| | |
| * | Added documentation about CompositeCaster subclassingDaniele Varrazzo2012-09-221-26/+9
| | |