Commit Graph

146 Commits

Author SHA1 Message Date
Daniele Varrazzo
da58bee70a Added documentation for the bytea parser 2011-03-26 12:59:15 +00:00
Daniele Varrazzo
5211e1474b Don't limit the hstore search to the public schema only
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.
2011-02-25 00:19:49 +00:00
Daniele Varrazzo
894d3f653c Raise an exception if the libpq fails to decode bytea in hex format 2011-02-23 14:04:27 +00:00
Daniele Varrazzo
1db9c9b8ce The cursor name can be a non-valid PostgreSQL identifier 2011-02-23 01:53:25 +00:00
Daniele Varrazzo
556b4d461e Documentation cleanup
Added several links to the Python documentation using the 'intersphinx'
extension.
2011-02-19 16:16:28 +00:00
Daniele Varrazzo
d263ecfee7 Display a note as a note in the cursor.lastrowid docs 2011-02-19 00:52:26 +00:00
Daniele Varrazzo
1f7774bd4e Cursor docs reordered
'cast()' moved in the retrieval functions. Methods only defined for
DBAPI compliance moved to the bottom.
2011-02-19 00:44:24 +00:00
Daniele Varrazzo
c620f18be1 Provide cursor.description as named tuple if possible
If namedtuple() is not available, use regular tuples.
2011-02-19 00:05:43 +00:00
Daniele Varrazzo
c76cace2ef Improved documentation for cursor.description
Describe what actually happens between Psycopg and PostgreSQL, not the
basic template copied from the DBAPI.
2011-02-17 13:38:18 +00:00
Daniele Varrazzo
63ac6cdde5 Added cursor.itersize
The value is used to control the number of records to fetch per network
roundtrip in named cursors iteration. Used to avoid the inefficient
arraysize default of 1 without giving this value the magic meaning of
2000.
2011-02-17 12:36:02 +00:00
Daniele Varrazzo
3b10ef8998 Documentation about new support for binary objects improved 2011-02-16 02:54:30 +00:00
Daniele Varrazzo
3ae2f221b3 Adapt bytearray and memoryview to bytes if available 2011-02-15 17:30:43 +00:00
Daniele Varrazzo
522af403c6 Added FAQ entry about the PYTHON_EGG_CACHE problem 2011-02-15 12:50:37 +00:00
Daniele Varrazzo
d4eb28aed5 Dropped reference to release 2.3.3 in the docs 2011-02-15 11:00:08 +00:00
Daniele Varrazzo
1a0c494417 Document difference of string handling in Python 2/3 2011-02-10 02:16:55 +00:00
Daniele Varrazzo
713b86acdf Added FAQ point about bytea_output in PostgreSQL 9.0 2011-02-10 02:16:55 +00:00
Daniele Varrazzo
9c81f6c186 Improved adaptation documentation
Documented __conform__() and prepare().
2011-02-10 02:16:24 +00:00
Federico Di Gregorio
da27142882 Merge branch 'python3' into python2 2011-02-06 16:47:05 +01:00
Daniele Varrazzo
fab31e9441 Fetch 'arraysize' records per roundtrip in named cursors iteration
Closes ticket #33.
2011-02-05 15:24:00 +01:00
Daniele Varrazzo
2cde9033ac Added documentation for Unicode support in large object
Not implemented yet!
2011-01-10 00:46:51 +00:00
Daniele Varrazzo
7ac0bdd661 Added PostgreSQL composite types typecaster to Python tuples. 2011-01-02 00:34:13 +01:00
Daniele Varrazzo
159cda3688 Added cursor.cast() method
The method exposes the typecasters lookup algorithm. Useful to create
recursive typecasters.
2011-01-01 22:55:10 +01:00
Daniele Varrazzo
9c71a9c6e5 Added link to psycogreen. 2010-12-02 17:13:13 +00:00
Daniele Varrazzo
bde523695a Fixed index entries of green-related terms. 2010-12-02 15:15:31 +00:00
Daniele Varrazzo
4bd8f8c76b Typo/tenso fixed. 2010-12-02 15:07:17 +00:00
Daniele Varrazzo
593cd20b4a Added index entries under Adaptation for different objects. 2010-12-02 15:06:27 +00:00
Daniele Varrazzo
6f2d40405e Added documentation for ISQLQuote.prepare(). 2010-11-28 18:26:30 +00:00
Daniele Varrazzo
4dbd4344a3 Mention query cancelling in the release notes. 2010-11-28 12:14:04 +00:00
Jan Urbański
751bfa1ea6 Support query cancellation.
Add a cancel() method do the connection object that will interrupt
the current query using the libpq PQcancel() function.
2010-11-28 11:50:02 +00:00
Daniele Varrazzo
f2c5d04f39 Fixed docs: the execute argument must be a sequence, not a tuple. 2010-11-19 13:13:14 +00:00
Daniele Varrazzo
4074635629 Moved links to PG docs from 8.4 to 9.0. 2010-11-17 23:05:10 +00:00
Daniele Varrazzo
73265e7ece Refuse connection with server with protocol version 2.
This cuts off server whose version is older than 7.4. But enables us to
remove large portions of code rarely used and tested (e.g. p2 copy) and
will allow us to drop the query we do at each connection to establish
the client encoding and the datestyle.
2010-11-16 01:01:32 +00:00
Daniele Varrazzo
b9e96dbbd2 Added version info to Xid object docs. 2010-11-08 01:28:01 +00:00
Daniele Varrazzo
2f582da1f0 Notifcation example improved. 2010-11-08 01:28:00 +00:00
Daniele Varrazzo
4ea9dbdcf0 Typo fixed 2010-11-06 04:40:47 +00:00
Daniele Varrazzo
abad3127ca Added NamedTupleCursor. 2010-11-06 04:33:44 +00:00
Daniele Varrazzo
5b65e75122 Docs expansions about thread/processes safety. 2010-11-05 23:58:10 +00:00
Daniele Varrazzo
04b4649d03 Updated version 2.2.3 -> 2.3 in the docs. 2010-11-05 12:38:49 +00:00
Daniele Varrazzo
56ae1fe4bf Payload default is the empty string. 2010-11-05 09:34:52 +00:00
Daniele Varrazzo
01ec120aa8 Hstore documentation improved. 2010-11-05 09:34:52 +00:00
Daniele Varrazzo
4b98e8941f Added some documentation for the hstore adaptation. 2010-11-05 09:34:52 +00:00
Daniele Varrazzo
90e0e2f47d Added documentation for the Xid object. 2010-11-05 09:34:50 +00:00
Daniele Varrazzo
a923a16ae8 Added two-phase commit docunetation. 2010-11-05 09:34:49 +00:00
Daniele Varrazzo
1a0fca09d9 Added documentation for the Notify object. 2010-11-05 09:34:47 +00:00
Daniele Varrazzo
d9e49e940a Fixed versionchanged note on fractional time zone. 2010-10-31 23:57:40 +00:00
Daniele Varrazzo
850cd97ab3 A few doc fixes. 2010-10-08 10:16:59 +01:00
Daniele Varrazzo
75a6f783c5 Added PostgreSQL 9.0 error codes. 2010-09-23 23:43:23 +01:00
Daniele Varrazzo
2081ceffde Don't execute a ROLLBACK on close()/GC.
The command wasn't sent since 2.2.0 due to a bug, but after a ML
discussion this behaviour proved more correct so the bug has become a
feature.
2010-09-23 23:28:30 +01:00
Daniele Varrazzo
bf9e557a71 Fixed typo in docs. 2010-09-23 23:17:32 +01:00
Daniele Varrazzo
19ae49e79e Refer to PostgreSQL 9.0 documentation. 2010-09-23 23:14:39 +01:00