summaryrefslogtreecommitdiff
path: root/lib/extras.py
Commit message (Collapse)AuthorAgeFilesLines
...
* | 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
| | |
| * | Make CompositeCaster easier to subclassDaniele Varrazzo2012-09-221-7/+19
| | |
* | | Info about hstore versions history moved from code to docsDaniele Varrazzo2012-09-221-10/+0
|/ /
* | Use namedtuple._make in NamedTupleCursor and CompositeCasterDaniele Varrazzo2012-09-201-10/+9
|/ | | | | | Makes things more natural as _make has the same signature of the tuple (see _ctor in CompositeCaster) and is probably more efficient with less intermediate sequences to build.
* Fixed register_hstore and register_composite with non-dbapi objectsDaniele Varrazzo2012-08-141-12/+14
| | | | Closed ticket #114.
* Fixed superclass methods call.Daniele Varrazzo2012-05-081-4/+4
| | | | | | | Methods execute() and callproc() in DictCursor and RealDictCursor should call DictCursorBase methods, not _cursor's ones. Reported by Alexey Luchko on the ML.
* Fixed cursor() arguments propagation to other connection classesDaniele Varrazzo2012-04-111-27/+19
|
* Allow user to override connection factory cursorsCorry Haines2012-04-111-11/+10
| | | | | | | | | | | | Prior to this change, using a extras.connection_factory would not allow any other cursor to be used on that connection. It was set in stone. This change allows all cursor options to pass through and override the connection factory behaviors. This allows a connection_factory to be dropped into existing code with no disruption. This change also standardizes the extras.connection_factories to have the same behavior and all pass through *args and **kwargs.
* Update all links to PostgreSQL docs to the current version.Marti Raudsepp2012-02-281-1/+1
| | | | I also checked all links and anchors to make sure they're still valid.
* Added support for inet arrayDaniele Varrazzo2012-02-231-6/+25
|
* register_uuid takes more iterables types as oids argumentDaniele Varrazzo2012-02-231-2/+9
| | | | Also added docs for the function parameters.
* Fixed NamedTupleCursor rownumber during iteration.Daniele Varrazzo2012-02-231-7/+10
| | | | | | | The correction is similar to the other one for the other subclasses. Also added tests for rowcount and rownumber during different fetch styles. Just in case.
* Fixed rownumber for cursor subclasses during iterationsDaniele Varrazzo2012-02-231-14/+6
| | | | | | | Regression introduced to fix ticket #80. Don't use fetchmany to get the chunks of values. I did it that way because I was ending up into infinite recursion calling __iter__ from __iter__: the solution has been the "while 1: yield next()" idiom.
* Dropped custom array parsing for UUID[]Daniele Varrazzo2012-02-231-10/+1
| | | | Use the C generic array parsing exposed by new_array_type().
* Parens don't need escaping in regexp char classesDaniele Varrazzo2012-02-231-2/+2
|
* Fixed never raised exception in composite parsingDaniele Varrazzo2012-02-231-1/+1
|
* 'register_composite()' also works with tablesDaniele Varrazzo2011-12-151-1/+2
| | | | Skip dropped and hidden columns when inspecting the schema.
* Use 'autocommit' to check if to rollback after extra types registrationDaniele Varrazzo2011-12-151-2/+2
| | | | isolation_level currently requires an extra query, autocommit doesn't.
* Fixed error in schema mismatch in composite casterDaniele Varrazzo2011-12-151-2/+2
|
* Named DictCursor/RealDictCursor honour itersizeDaniele Varrazzo2011-12-111-8/+18
| | | | Closes ticket #80.
* Added support for arrays of composite typesDaniele Varrazzo2011-09-221-6/+31
|
* Added support for arrays of hstoresDaniele Varrazzo2011-09-221-5/+25
|
* Fixed interaction between RealDictCursor and named cursorsDaniele Varrazzo2011-09-121-0/+4
| | | | Closes ticket #67.
* Fixed NamedTupleCursor.executemany() (ticket #65)Daniele Varrazzo2011-08-091-1/+1
|