summaryrefslogtreecommitdiff
path: root/lib/extras.py
Commit message (Collapse)AuthorAgeFilesLines
...
* lazy import for uuid moduleMarko Kreen2011-06-281-52/+43
| | | | | | | | | | | | | Attached patch moves uuid import from inside try-except to register_uuid function. Reason: uuid module import is *very* heavy. It goes into OS searching for various .dll/.so libraries, lauches 'ldconfig' and so on... With this patch, 200x python -c 'import psycopg2.extras' goes from 22s to 7s. (plain 'import psycopg2' is 6s) -- marko
* Don't fetch all the records iterating a NamedTuple cursor on a named cursorDaniele Varrazzo2011-04-261-1/+8
|
* Fixed interaction between NamedTuple and named cursorDaniele Varrazzo2011-04-261-2/+2
| | | | | Build the nametuple after fetching the first resutl, or else cursor.description will be empty.
* Dropped unused importDaniele Varrazzo2011-04-261-1/+0
|
* Fixed use of the new return value of HstoreAdapter.get_oids()Daniele Varrazzo2011-02-251-3/+1
|
* Don't limit the hstore search to the public schema onlyDaniele Varrazzo2011-02-251-7/+16
| | | | | | Looks like there is a case for installing hstore somewhere else (see ticket #45). And after all the typecaster can be registered on a list of OIDs, so let's grab them all.
* Added oid parameter to register_hstore()Daniele Varrazzo2011-02-211-18/+32
| | | | | | | The parameter is mostly useful with async connections that would need a different protocol to be queried. Issue reported by Jan "the Asynchronous".
* Documentation cleanupDaniele Varrazzo2011-02-191-15/+12
| | | | | Added several links to the Python documentation using the 'intersphinx' extension.
* Fixed mapping for composite types defined in a schemaDaniele Varrazzo2011-02-091-3/+10
|
* Fields order enforced in composite types adapterDaniele Varrazzo2011-02-091-1/+2
|
* Merge branch 'python2' into python3Daniele Varrazzo2011-01-031-4/+6
|\ | | | | | | | | | | | | | | Conflicts: NEWS-2.3 psycopg/connection_type.c tests/test_connection.py tests/types_basic.py
| * Fixed TYPE adaptation to basic tuplesDaniele Varrazzo2011-01-031-4/+6
| | | | | | | | Tuples and namedtuples have different constructors.
* | Merge branch 'python2' into python3Daniele Varrazzo2011-01-021-0/+142
|\ \ | |/ | | | | | | | | Conflicts: NEWS-2.3 setup.py
| * Added PostgreSQL composite types typecaster to Python tuples.Daniele Varrazzo2011-01-021-0/+142
| |
* | Inet adapter compatible with Python 3.Daniele Varrazzo2010-12-311-1/+1
| |
* | Hstore adapter compatible with Python 3.Daniele Varrazzo2010-12-311-25/+20
| |
* | Deal with slices passed to __*item__ in Python 3.Daniele Varrazzo2010-12-231-2/+2
| |
* | Some light cleanup for Py3 conversion.Daniele Varrazzo2010-12-211-12/+21
|/ | | | Either flagged as warning by python2.6 -3 or converted by 2to3.
* DictRow items can be updated. Patch by Alex Aster.Daniele Varrazzo2010-12-011-0/+5
|
* hstore registration doesn't fail if typarray column not available.Daniele Varrazzo2010-11-191-4/+6
|
* NamedTupleCursor doesn't change exception when fetching with no result.Daniele Varrazzo2010-11-111-1/+1
|
* Build the namedtuple only once per execution, not once per fetch.Daniele Varrazzo2010-11-111-3/+23
|
* Avoid pointless string manipulation in NamedTupleCursor.Daniele Varrazzo2010-11-091-2/+1
| | | | Closes ticket #10. Reported by Marko Kreen.
* Added NamedTupleCursor.Daniele Varrazzo2010-11-061-0/+55
|
* Hstore documentation improved.Daniele Varrazzo2010-11-051-13/+17
|
* Added some documentation for the hstore adaptation.Daniele Varrazzo2010-11-051-6/+6
|
* The hstore typecast can be registered globally.Daniele Varrazzo2010-11-051-27/+40
|
* Favour the PG9 implementation of the hstore adapter.Daniele Varrazzo2010-11-051-5/+5
|
* Hstore can return unicode keys and values.Daniele Varrazzo2010-11-051-5/+26
|
* Correctly parse escaped quotes from hstore.Daniele Varrazzo2010-11-051-9/+4
| | | | Parse regexp simplified.
* Added special cases to store empty dicts.Daniele Varrazzo2010-11-051-0/+6
|
* Added hstore typecaster registration.Daniele Varrazzo2010-11-051-0/+43
|
* parse_hstore converted in class method.Daniele Varrazzo2010-11-051-50/+52
|
* Added function to parse an hstore into a dict.Daniele Varrazzo2010-11-051-1/+51
|
* Added implementation of python dict adapter to hstore.Daniele Varrazzo2010-11-051-0/+43
|
* The Inet type knows how to adapt itself.Daniele Varrazzo2010-09-251-1/+4
| | | | | Implemented __conform__ as the Adaptation PEP suggests. It is not required for the type to be registered as adapter.
* Added deprecation warning to register_tstz_w_secsFederico Di Gregorio2010-07-131-1/+2
|
* Dropped register_tstz_w_secs() implementation.Daniele Varrazzo2010-05-201-45/+7
| | | | | The function is no-op now that the default type caster can deal with seconds in the tz offset.
* Changed 'psyco_wait()' to only take the connection.Daniele Varrazzo2010-04-211-3/+2
|
* Added wait callback and functions to deal with it.Daniele Varrazzo2010-04-211-0/+24
|
* Make asynchronous connections produce asynchronous cursors by defaultJan UrbaƄski2010-04-051-8/+8
| | | | | | | | | | | Drop the async kwarg from cursor.execute(), cursors created by asynchronous connections will be asynchronous by default, ones created by synchronous connections will be synchronous. Mind that this might break third party subclasses of psycopg2.extensions.cursor, if they try to chain to the superclass in their execute() implementation and are passing the async kwarg. The example cursors in psycopg2.extras have been fixed no to do that.
* Use the default role for cross referencing Python objects.Daniele Varrazzo2010-02-261-7/+7
|
* Typo fixed in DictRow doc.Daniele Varrazzo2010-02-161-1/+1
|
* Inet adapter fixed.Daniele Varrazzo2010-02-141-1/+5
|
* Added documentation for the extras module.Daniele Varrazzo2010-02-141-20/+29
|
* Fixed Inet constructor.Daniele Varrazzo2010-02-141-1/+1
|
* Stop the loop variable used to create __all__ leaking in the module.Daniele Varrazzo2010-02-141-1/+1
|
* Changes license to LGPL3 + OpenSSL exception on all source filesFederico Di Gregorio2010-02-121-9/+17
|
* Fixed register_tstz_w_secs() errorFederico Di Gregorio2010-02-101-1/+1
|
* Added support for UUID arraysFederico Di Gregorio2009-10-041-3/+24
|