Oleksandr Shulgin
0233620c26
Rework replication connection/cursor classes
2015-10-01 19:33:27 +02:00
Oleksandr Shulgin
95ee218c6d
Update replication connection/cursor interface and docs.
2015-10-01 19:33:20 +02:00
Oleksandr Shulgin
937a7a9024
Cleanup start replication wrt. slot type a bit.
2015-10-01 19:33:16 +02:00
Oleksandr Shulgin
862eda10c2
Merge remote-tracking branch 'origin/master' into repl
2015-10-01 19:29:17 +02:00
Daniele Varrazzo
f635547ec6
The wait_select callback can cancel a query using Ctrl-C
...
Fixes #333 .
2015-10-01 15:26:13 +01:00
Daniele Varrazzo
d1af12187c
Merge branch 'master' into parse-dsn
2015-10-01 11:39:51 +01:00
Oleksandr Shulgin
9386653d72
Update docs on ReplicationCursor
2015-07-01 14:08:32 +02:00
Oleksandr Shulgin
318706f28c
Update docs for Replication protocol
2015-06-30 16:17:31 +02:00
Oleksandr Shulgin
e3c3a2c19e
Merge branch 'master' into feature/replication-message-object
...
Conflicts:
lib/extensions.py
2015-06-30 10:30:32 +02:00
Daniele Varrazzo
925fdf5731
Fixed doc about libpq version availability
2015-06-02 17:11:09 +01:00
btubbs
06b4b1de94
Notify example should pop the oldest message in conn.notifies, not the newest.
2015-06-02 17:07:10 +01:00
Daniele Varrazzo
1f330e9cac
Allow connection.notices and notifies to be replaced.
...
Close #326
2015-06-02 17:02:04 +01:00
Pete Hollobon
5712f30169
Change "non desiderable" to "undesirable" in docs
...
"desiderable" is considered obsolete
2015-06-02 13:00:25 +01:00
Oleksandr Shulgin
cc08e14162
Merge branch 'master' into feature/parse-dsn
...
Conflicts:
lib/extensions.py
2015-06-02 12:42:03 +02:00
Daniele Varrazzo
c2955fb8fc
Version function/constant docs improved
2015-06-02 11:20:02 +01:00
Oleksandr Shulgin
4bb6f9cef2
Add libpq version discovery
2015-06-01 18:05:11 +02:00
Oleksandr Shulgin
6a2f21aa14
Move parse_dsn to extensions, add tests
2015-06-01 15:11:12 +02:00
Oleksandr Shulgin
e32e1b834e
Add support for streaming replication protocol
...
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.)
2015-06-01 11:45:04 +02:00
Oleksandr Shulgin
6c57e4a648
Add parse_dsn module function
...
Calls PQconninfoParse to parse the dsn into a list of keyword and value
structs, then constructs a dictionary from that. Can be useful when one
needs to alter some part of the the connection string reliably, but
doesn't want to get into all the details of parsing a dsn string:
quoting, URL format, etc.
2015-06-01 10:16:07 +02:00
Daniele Varrazzo
1b7e3c6da4
Improve docs about connection's with only closing the transaction
2015-05-03 12:01:06 +01:00
Daniele Varrazzo
4078b89521
Added makefile target to upload docs
2015-05-03 10:30:33 +01:00
Daniele Varrazzo
1d006ccbe9
Added note about table names to be escaped in copy_*() methods.
2015-05-03 10:30:28 +01:00
Daniele Varrazzo
f27ca25d2e
Wordsmith on connection.set_session()
...
Fixes #310 .
2015-05-03 10:30:05 +01:00
Daniele Varrazzo
0b523927bc
Docs build process and docs cleaned up
2015-04-28 09:32:58 +01:00
Daniele Varrazzo
54ebf90fc6
Document that LO64 is only available on Py 64 builds
2015-02-08 02:21:22 +00:00
Daniele Varrazzo
2332f2c99e
Merge branch 'timetz'
2014-12-25 15:09:15 +01:00
Daniele Varrazzo
c008f9d1ce
Added documentation about the lo64 support
2014-12-25 15:06:18 +01:00
Daniele Varrazzo
6bccb05c90
timetz adaptation documented
2014-12-25 14:57:31 +01:00
Asmund Tokheim
ab4afd0e2f
Correction to type adaption example, making it more transparent
2014-11-02 14:15:51 +01:00
Daniele Varrazzo
48a32b766b
In 2010 I couldn't speak English
2014-09-16 06:57:34 +01:00
Tomer Chachamu
6de7315210
Fix typo in docs
2014-09-01 16:29:38 +01:00
Daniele Varrazzo
8e06a51884
Added plural version of the tickets role
2014-08-31 03:05:03 +01:00
Daniele Varrazzo
7d81c48849
Point tickets to GitHub instead of Lighthouse
...
Keep into account the numbers reshuffling: Lighthouse bugs with a number
matching a GitHub merge request are shifted ahead.
2014-08-31 03:05:03 +01:00
Daniele Varrazzo
f7ee006bef
Use virtualenv as build environment for the docs
2014-08-24 23:11:07 +01:00
Daniele Varrazzo
4a4e0d8f9a
Self-updating copyright year in docs
2014-08-24 23:07:22 +01:00
Daniele Varrazzo
c1da93a7b2
Document we known 9.4 errorcodes
2014-08-24 22:11:21 +01:00
Daniele Varrazzo
2ad67ee56e
Move the extras
module up in the docs
...
It is more interesting than `tz` and `pool`.
2014-08-24 22:10:24 +01:00
Daniele Varrazzo
843de765a1
Fixed doc example about Error attributes
...
Catch the Error, not everything!
Also, whitespaces.
2014-08-24 22:08:33 +01:00
Daniele Varrazzo
c0e94ad01f
Dropped outdated HACKING file
2014-08-24 02:06:09 +01:00
Daniele Varrazzo
d8bbaf0481
Added info about running the test suite in the docs
...
They were in the INSTALL file, which is quite out-of-date now.
Also fixed a couple of other things.
2014-08-24 02:06:09 +01:00
Daniele Varrazzo
c475a0db95
Document PostgreSQL 9.4 as supported
...
Actually there is a test failing in the test suite in PG 9.4beta2, but
it's probably because the default logging level is to DEBUG. Will wait
for the final release to check if the test is to be fixed. All other
tests pass no problem.
2014-08-13 02:09:04 +01:00
Daniele Varrazzo
f40ad93a37
Added jsonb docs
2014-08-13 02:02:04 +01:00
Daniele Varrazzo
6bca443e37
Added name param to register_json()
2014-08-13 02:01:55 +01:00
Daniele Varrazzo
44281d6692
Fix supported Py/PG versions in docs
2014-08-04 22:39:52 +01:00
Daniele Varrazzo
6d6fd9acf7
Parse errocodes for PG 9.3 too
...
There is no new errcode defined so no need to release this as a change,
only change the docs.
2014-07-31 13:35:04 +01:00
Daniele Varrazzo
40dca9924d
Add a few missing errcodes
...
They are used in the code but not defined in the SGML docs so the script
failed to parse them.
2014-07-31 13:34:53 +01:00
Daniele Varrazzo
abd975ae40
set_session() params documented in a more Python-friendly way
2014-05-05 23:06:23 +01:00
Daniele Varrazzo
09fb131f1a
Don't specify 0 or 1 in closed docs
...
There's also 2 which means broken. But I prefer to leave that as
implementation detail.
2014-04-05 16:03:19 +01:00
Daniele Varrazzo
33f2301772
Clarify in the docs that mogrify() and query always return bytes
2014-04-03 02:46:54 +01:00
Daniele Varrazzo
25e3a5f744
Explicit the fact that closed connections have undefined status
2014-04-03 02:07:38 +01:00
Daniele Varrazzo
212f4e3538
Docs wordsmithing about Range order
2014-02-22 23:01:02 +00:00
Chris Withers
6cd0647da9
documentation changes now that Range objects can be ordered
2014-02-18 21:24:59 +00:00
Daniele Varrazzo
4ed9dc1435
Added doc notes about how to avoid JSON parsing
...
Added FAQ too as it has bitten more than one user
(see tickets #172 , #190 ).
2014-01-14 18:33:05 +00:00
Daniele Varrazzo
6ab1ec1c37
Typo fixes and improvements to new_array_type() docs
2013-10-21 15:27:31 +01:00
Daniele Varrazzo
bc70902ea5
Use bytestrings in infinite dates adapter example
...
Returning strings would result in unclear tracebacks on Py3 (see ticket #163 ).
2013-10-21 14:30:25 +01:00
Daniele Varrazzo
5c99d2a456
Document that named cursors don't raise an exception going out-of-bound
...
See issue #174 for the details.
2013-10-16 19:10:20 +01:00
Daniele Varrazzo
a0a63e3ac7
Document that using %, (, ) in the placeholder name is not supported
2013-10-16 17:50:11 +01:00
Daniele Varrazzo
497247a528
Fixed doc index entry for infinite dates
2013-06-23 02:14:01 +01:00
Daniele Varrazzo
83c5d12cf1
Added doc example to convert date.max to infinity
...
See issue #163 .
2013-06-18 15:00:30 +01:00
Daniele Varrazzo
bbe0bf955c
A few docs fixes to the usage page
2013-05-01 22:40:19 +01:00
Daniele Varrazzo
1ff3ea0745
Dropped a lot of words from the front matter
...
Replaced with links to the types adaptation table and the extension docs.
2013-04-26 10:06:26 +01:00
Piotr Kasprzyk
31b6ec63f8
Fix multiple misspellings
2013-04-26 09:59:40 +01:00
Daniele Varrazzo
04c09b7b38
Dropped GPL license from source
...
It doesn't apply: leaving the LGPL only.
2013-04-07 22:02:45 +01:00
Daniele Varrazzo
f2fbf18a05
Dropped psycopg 1 changelog
...
Also MANIFEST.in cleaned up from stale entries
2013-04-07 22:01:38 +01:00
Daniele Varrazzo
884a7f7db6
A couple of typos fixed
2013-04-07 16:05:36 +01:00
Daniele Varrazzo
9e15f54fe8
Added cursor_factory connection attribute and connect() parameter
2013-04-07 02:30:12 +01:00
Daniele Varrazzo
b6873ee1ab
Dropped support for Python 2.4
2013-03-20 23:40:13 +00:00
Daniele Varrazzo
75811f5bb1
Note than Python 3.3 is supported in install docs
2013-03-20 13:08:01 +00:00
Daniele Varrazzo
73949cd1b8
Merge branch 'diagnostics' into devel
2013-03-20 01:47:14 +00:00
Daniele Varrazzo
114c62fac8
Added tests to verify the new Diagnostics properties
...
diag can be used on exceptions raised without cursor and is independent from
the cursor.
Docs updated to reflect the changes.
2013-03-20 00:03:58 +00:00
Daniele Varrazzo
e86efa7e30
Added summary data types conversion table to the docs
...
It allows looking at a glance both basic and extended type casters,
with plenty of links to the detailed explanations.
2013-03-18 19:22:31 +00:00
Daniele Varrazzo
abb3027aa3
NEWS file reformatted to reST and included in the docs
2013-03-18 15:42:10 +00:00
Daniele Varrazzo
93928a7141
Document that errorcodes is updated to 9.2
2013-03-18 15:10:24 +00:00
Daniele Varrazzo
ae918c34b8
Copyright year bumped to 2013 in docs footer
2013-03-18 15:10:06 +00:00
Daniele Varrazzo
97311967e8
Merge branch 'diagnostics' into devel
2013-03-18 02:21:09 +00:00
Daniele Varrazzo
678f0dc949
Added documentation about the Diagnostics object
2013-03-18 02:11:45 +00:00
Daniele Varrazzo
e1ff432f4c
Merge branch 'dead-bytes' into devel
2013-03-16 16:25:17 +00:00
Idan Kamara
7f86529183
docs: grammar fix in extras.rst
2013-03-06 11:36:32 +02:00
Daniele Varrazzo
e8db9954d1
Improvements to the connect() docs
...
- links updated to the current PG docs, which include the syntax as url
and lists the parameters in a separate chapter
- more evident links to the PG docs
- mutually exclusive use of dsn and **kwargs specified
See ticket #143
2013-01-09 12:56:06 +00:00
Daniele Varrazzo
49af4fe539
Fixed interactive sessions docs examples
2013-01-09 03:10:32 +00:00
Daniele Varrazzo
c2f284cd3b
Added documentation for the with statement
2012-12-03 03:18:51 +00:00
Daniele Varrazzo
8e08aeb690
Dropped Zope support
2012-12-03 02:53:20 +00:00
Daniele Varrazzo
02ffb7423a
Splitting the release of new features in version 2.5
2012-12-03 00:39:19 +00:00
Daniele Varrazzo
896ad7c827
Fixed a couple of terms in the docs
...
After Pierre-Louis Bonicoli's suggestions in ticket #138 .
2012-11-12 01:32:38 +00:00
Daniele Varrazzo
10476200fd
Added note about the adapted attribute in the module-level wrappers
...
Specifying it otherwise people expects the wrappers to have full datetime
semantics: see ticket #136 .
2012-10-27 22:24:48 +01:00
Daniele Varrazzo
6b8861d2d5
Clarification in copy_expert docs
...
Closes ticket #134 .
2012-10-15 00:47:22 +01:00
Daniele Varrazzo
ee763e0f47
Copyright bumped to 2012 in docs pages
2012-10-07 13:14:31 +01:00
Daniele Varrazzo
a666432329
Docs front page adjustments
2012-10-07 02:07:47 +01:00
Daniele Varrazzo
82dc32cebd
Added install section to the manual
2012-10-07 02:04:39 +01:00
Daniele Varrazzo
4244d5953a
Merge branch 'range-type' into devel
2012-09-27 00:48:05 +01:00
Daniele Varrazzo
dda24f082f
Merge branch 'json' into devel
2012-09-27 00:41:04 +01:00
Daniele Varrazzo
33043cd038
Merge branch 'composite-custom' into devel
2012-09-27 00:38:00 +01:00
Daniele Varrazzo
f70e6a1519
Grammar correction for RangeCaster.array_typecaster
2012-09-24 12:13:46 +01:00
Daniele Varrazzo
71e2f190c2
Json documentation improved
2012-09-24 11:51:35 +01:00
Daniele Varrazzo
c756d580f2
Added documentation for range types and adaptation
2012-09-24 00:49:44 +01:00
Daniele Varrazzo
9949e04c70
Added schema attribute to CompositeCaster
2012-09-22 15:10:40 +01:00
Daniele Varrazzo
59151886a0
Info about hstore versions history moved from code to docs
2012-09-22 02:10:58 +01:00
Daniele Varrazzo
26cfdc1234
Info about versions history moved from code to docs
2012-09-22 02:08:21 +01:00
Daniele Varrazzo
fa9393b587
Added documentation about CompositeCaster subclassing
2012-09-22 02:01:04 +01:00
Daniele Varrazzo
7386b8327c
Dropped keywords passthrough in Json adapter
...
Pass a dumps function instead. Allow customizing by either arg passing or
subclassing.
The basic Json class now raises ImportError on getquoted() if json is not
available, thus allowing using a customized Json subclass even when the json
module is not available.
2012-09-19 16:32:57 +01:00
Daniele Varrazzo
d963b478e2
Added register_default_json() function
...
Register a typecaster for PostgreSQL 9.2 json.
2012-09-19 15:49:00 +01:00
Daniele Varrazzo
024f0dbada
Added json typecaster
2012-09-19 04:26:35 +01:00
Daniele Varrazzo
b8e7f02256
Added Json adapter
2012-09-19 04:12:20 +01:00
Daniele Varrazzo
64e3e1199e
Fixed note on rollback on close in the doc
...
It's not like we call "rollback()": we close the connection and the
backend rolls back on its own. It may have differences, e.g. conn poolers.
2012-09-18 12:54:41 +01:00
Daniele Varrazzo
9ae4bbd195
Fixed smell of pizza in the docs
2012-09-18 12:54:41 +01:00
Daniele Varrazzo
99b7683338
Added documentation for scrollable cursors
2012-08-15 11:26:45 +01:00
Daniele Varrazzo
8666693512
Fixed incorrect and outdated connection.commit() doc
2012-07-27 17:44:28 +01:00
Brian Sutherland
2371166383
grammar
2012-07-27 12:48:28 +03:00
Daniele Varrazzo
3559ea0d10
Fixed typo in docs
...
Ticket #115 closed.
2012-07-08 22:52:24 +01:00
Daniele Varrazzo
08c8b62e1b
Added %% use to the docs
2012-05-29 23:53:02 +01:00
Daniele Varrazzo
291b4ce81f
Fixed text docs build on Python 3
...
Thanks to Arfrever for the patch (ticket #107 ).
2012-04-11 18:18:40 +01:00
Daniele Varrazzo
67064f8e03
All the FAQ have they own id that can be used in URLs to refer to
2012-03-09 16:55:02 +00:00
Daniele Varrazzo
5473d50a09
Added more information about the case of the missing lo_truncate
...
After some ML message and ticket #104 .
2012-03-09 16:55:02 +00:00
Marti Raudsepp
b97599166e
Update all links to PostgreSQL docs to the current version.
...
I also checked all links and anchors to make sure they're still valid.
2012-02-28 18:28:07 +02:00
Daniele Varrazzo
a165f86127
Added docs about how to create a generic array typecaster
2012-02-24 00:33:28 +00:00
Daniele Varrazzo
0c337a2029
Added support for inet array
2012-02-23 23:56:55 +00:00
Daniele Varrazzo
4e1d96082a
Typos fixed in copy methods
2012-02-23 14:41:41 +00:00
Daniele Varrazzo
78895e6943
Added doc for Error.cursor
2012-01-19 01:30:46 +00:00
Daniele Varrazzo
3094371621
Fixed doc for supported PG versions in errorcodes table
2011-12-16 12:37:38 +00:00
Daniele Varrazzo
08fa6550ab
Docs typo fixed
2011-12-16 11:09:20 +00:00
Daniele Varrazzo
c3914b8aa2
Improvements to the docs homepage after Bucko's proofreading
2011-12-15 22:13:20 +00:00
Daniele Varrazzo
9e8fc349b9
Docs homepage refreshed with new bragging and links
2011-12-15 21:42:08 +00:00
Daniele Varrazzo
2cf35b69de
'register_composite()' also works with tables
...
Skip dropped and hidden columns when inspecting the schema.
2011-12-15 20:11:17 +00:00
Daniele Varrazzo
088978e7b1
Typo fixed writeable -> writable
...
Closes ticket #79 .
2011-12-11 02:55:29 +00:00
Daniele Varrazzo
d2b67364fd
connect() supports generic keyword arguments passed to the dsn
2011-11-17 01:51:25 +00:00
Daniele Varrazzo
4254fb8566
Documentation for the isolation level constants updated
...
REPEATABLE READ and SERIALIZABLE are no more synonyms since PostgreSQL 9.1,
and in Psycopg values are different since 2.4.2.
2011-11-17 00:41:44 +00:00
Daniele Varrazzo
00b52c78b3
Docs cleanup by Josh Kupershmidt
2011-11-01 07:09:51 +00:00
Daniele Varrazzo
83d457361e
Fixed docs for the copy null parameter
2011-10-20 11:12:05 +01:00
Daniele Varrazzo
3e39b23835
Notice -> Note in the docs, and a handful of other typo fixed
2011-10-14 23:59:49 +01:00
Daniele Varrazzo
37a9eb3615
Test and document the named cursor stealing technique
2011-10-14 23:17:24 +01:00
Daniele Varrazzo
6da39e3a37
Fixed pasto in docs
2011-10-06 18:38:30 +01:00
Daniele Varrazzo
e3054ac9f3
Added new_array_type() function
...
Allows the creation of a generic array typecaster from Python.
2011-09-22 15:51:21 +01:00
Daniele Varrazzo
6c8051907c
Fixed doc blocks
...
Raise error with docutils 0.8.1. Probably docutils 0.7 was more lenient.
2011-09-22 15:50:50 +01:00
Federico Di Gregorio
880aa07a58
WITH HOLD documentation a argument parsing changes
...
Now any true value will do for the withhold parameter.
2011-08-10 19:21:12 +02:00
Daniele Varrazzo
11ff27b5af
Added documentation for putconn's close parameter
2011-08-09 11:44:30 +01:00
Daniele Varrazzo
30a046c602
Fixed adaptation doc example
...
Close ticket #63
2011-07-24 20:42:23 +01:00
Federico Di Gregorio
3ec9677978
Aligned casing of isolation levels with PostgreSQL documentation
2011-06-12 21:40:31 +02:00
Daniele Varrazzo
d76d136b4f
Introductory docs section on transaction control improved
...
Added big fat warning about idle in transaction and reference to
set_session().
2011-06-08 14:38:57 +01:00
Daniele Varrazzo
d2b28abced
Method set_transaction() renamed to set_session()
...
In fact it doesn't change "the transaction", as there has to be no
transaction when invoked. The effect instead is to execute SET SESSION
CHARACTERISTICS.
2011-06-08 14:22:11 +01:00
Daniele Varrazzo
6d907df14d
Fixed documentation for COPY methods
...
The size parameter in copy_from was undocumented (ticket #59 ).
2011-06-07 11:16:10 +01:00
Daniele Varrazzo
8f876d4b5d
Avoid a deadlock using concurrent green threads on the same connection
...
Use the async_cursor property to store an indication that something is
running (even if it is not necessarily a cursor running the query).
2011-06-05 16:22:54 +01:00
Daniele Varrazzo
530ba78881
Documentation for set_transaction() and autocommit improved
2011-06-03 01:46:56 +01:00
Daniele Varrazzo
a69facc7f0
Adding docs for the planned set_transaction/autocommit features
2011-05-31 00:05:50 +01:00
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
Daniele Varrazzo
80ebb14df4
Use stable anchors to reference PostgreSQL docs.
2010-09-23 23:13:59 +01:00
Daniele Varrazzo
9b3aa290d2
Added missing import required by Sphinx 1.0.
2010-08-05 01:08:21 +01:00
Daniele Varrazzo
660b75c2f4
Typo fixed.
2010-08-04 23:26:52 +01:00
Federico Di Gregorio
557608f715
Applied spelling fixes patch from Peter Eisentraut
2010-07-18 12:14:46 +02:00
Daniele Varrazzo
4a78e4068b
Dropped register_tstz_w_secs() implementation.
...
The function is no-op now that the default type caster can deal with
seconds in the tz offset.
2010-05-20 02:18:04 +01:00
Daniele Varrazzo
305d86f38a
Handle time zones with seconds in the UTC offset.
...
The offset is rounded to the nearest minute.
2010-05-20 02:16:04 +01:00
Daniele Varrazzo
b04bf41f99
Fixed decimal to float recipe to avoid using FLOAT.
...
FLOAT seems not working with NULLs.
2010-05-15 14:27:24 +01:00
Daniele Varrazzo
e8c2a14362
Added typecasters for arrays of specific MX/Py time-related types.
2010-05-15 14:27:23 +01:00
Daniele Varrazzo
2020790ba1
Typo fixed.
2010-05-15 14:27:02 +01:00
Daniele Varrazzo
e29424a230
Dropped large object support when psycopg is in green mode.
...
Async mode and large object are not compatible, albeit I haven't found
an authoritative source yet.
2010-05-09 20:34:02 +01:00
Daniele Varrazzo
dab098c1cb
Cleaned up documentation for connection status constants.
...
Dropped reference to unused/internal states.
2010-04-23 13:28:49 +01:00
Daniele Varrazzo
d2d1160260
Documentation about coroutines support reviewed.
2010-04-23 13:20:56 +01:00
Daniele Varrazzo
8fed0aa57d
Forbid COPY-related methods in green mode.
...
With the current implementation, at best they would silently block. They
actually hang everything.
Implementation posponed after some refactoring of the polling system,
because it will be probably possible to provide an implementation for
'poll()' during COPY which is good for both async and green modes.
2010-04-21 15:21:33 +01:00
Daniele Varrazzo
a54932ee9c
Added documentation for the green features.
2010-04-21 15:21:32 +01:00
Daniele Varrazzo
02a28ff028
Notifications are automatically read after each query.
...
Added tests for basic notifications process.
2010-04-21 15:09:14 +01:00
Daniele Varrazzo
d8f4ed1a04
Fixed documentation and example for asynchronous notifications.
2010-04-21 15:09:13 +01:00
Daniele Varrazzo
6fecc36b7f
Connection method 'executing()' renamed to 'isexecuting()'.
2010-04-21 15:09:13 +01:00
Daniele Varrazzo
7ee09353ec
Connection method 'issync()' changed into the attribute 'async'.
2010-04-21 15:09:13 +01:00
Daniele Varrazzo
7cf52da969
Ensure to close the connections in the doctests to avoid deadlocks.
2010-04-21 15:09:13 +01:00
Daniele Varrazzo
ac6938a26a
Fixed async documentation after cursor.poll() dropped.
2010-04-21 15:09:13 +01:00
Daniele Varrazzo
b7327a349d
FAQs grouped in themes.
2010-04-21 15:09:13 +01:00
Daniele Varrazzo
431920b367
Added recipe to get Python floats from Postgres decimals in the FAQ.
2010-04-14 01:05:36 +01:00
Daniele Varrazzo
0ac4c8ac17
Typecasters section in the extensions doc reordered.
2010-04-14 00:41:03 +01:00
Daniele Varrazzo
d162c08cfa
PY* and MX* typecasters imported into the extensions module.
2010-04-14 00:27:28 +01:00
Daniele Varrazzo
54e9c89ea4
DECIMAL typecaster imported into the extensions module.
2010-04-14 00:20:16 +01:00
Daniele Varrazzo
6aaa50703e
Added documentation for the new asynchronous support.
2010-04-08 13:25:17 +01:00
Jan Urbański
e0d789466a
Support large objects truncating.
...
The lobject.truncate(len=0) method will be available if psycopg2 has
been built against libpq from 8.3 or later (which is when the lobject
truncating support has been introduced).
2010-03-29 09:19:35 +02:00
Daniele Varrazzo
99620c1454
A bunch of typo fixed in the docs
2010-03-03 18:43:24 +01:00
Daniele Varrazzo
17a4cc9f67
All the docs todo points dropped: todo list removed.
2010-02-26 01:10:15 +00:00
Daniele Varrazzo
140e6ad4f2
Added notes about stuff changed in ver. 2.0.14.
2010-02-26 01:09:08 +00:00
Daniele Varrazzo
97ced0d4f1
Use the default role for cross referencing Python objects.
2010-02-26 00:49:19 +00:00
Daniele Varrazzo
4412826556
Added documentation for the 'pool' module.
2010-02-26 00:46:23 +00:00
Federico Di Gregorio
b99f2d5f8e
Added a couple more questions to the FAQ
2010-02-22 19:38:47 +01:00
Daniele Varrazzo
50f5daef8b
Added FAQ section to the documentation.
2010-02-18 04:12:49 +00:00
Daniele Varrazzo
29feed31b6
Cleaned up parameters style from the docs.
2010-02-18 04:12:46 +00:00
Daniele Varrazzo
a320f25a2a
Completed documentation for errorcodes module.
2010-02-16 00:38:44 +00:00
Daniele Varrazzo
8001795b95
More uniform titles style in docs index.
2010-02-16 00:37:47 +00:00
Daniele Varrazzo
491bbb111c
Fixed code block.
2010-02-16 00:37:17 +00:00
Daniele Varrazzo
289ab1cd8d
Binary adapter imported from the correct module.
2010-02-16 00:36:59 +00:00
Daniele Varrazzo
c72fbf0b0f
Fixed example (with doctest) for Inet
2010-02-16 00:36:48 +00:00
Daniele Varrazzo
9ba6102f66
Added documentation for database large objects.
2010-02-16 00:36:32 +00:00
Daniele Varrazzo
b744c92f58
Documentation dir reordered.
2010-02-14 16:45:36 +00:00
Daniele Varrazzo
620f77cb77
Generate text documentation in a single file.
2010-02-14 16:45:31 +00:00
Daniele Varrazzo
a1fa06e6d8
Drop table moved off the example.
2010-02-14 13:23:05 +00:00
Daniele Varrazzo
f134bceb00
Added function to drop a test table in the doctest.
2010-02-14 13:23:05 +00:00
Daniele Varrazzo
a54336f7b4
Docs cleaned up while still being testable.
2010-02-14 13:23:05 +00:00
Daniele Varrazzo
47809c338f
Added 'make check' target to docs.
2010-02-14 13:23:05 +00:00
Daniele Varrazzo
edc690e60a
Index and targets for subclassing work again.
2010-02-14 13:23:04 +00:00
Jonathan Ballet
323340abc6
The documentation is now mostly doctest-able
2010-02-14 13:23:04 +00:00
Daniele Varrazzo
12bd7bf7cc
Documentation generated in 'doc/html/' instead of 'doc/_build/html/'
2010-02-14 01:10:37 +00:00
Daniele Varrazzo
00805633b2
Added README to explain how to build the documentation.
2010-02-14 00:39:49 +01:00
Daniele Varrazzo
a313011a57
Added a bunch of versions update informations.
2010-02-14 00:39:49 +01:00
Daniele Varrazzo
e4d427aae6
Added documentation for 'Error.pgerror' and 'Error.pgcode' attributes.
2010-02-14 00:39:49 +01:00
Daniele Varrazzo
c72dc3af00
Added documentation for 'connection.reset()' method.
2010-02-14 00:39:49 +01:00
Daniele Varrazzo
a856f0724e
Use the module version as documentation version.
2010-02-14 00:39:49 +01:00
Daniele Varrazzo
ba1354502e
Added documentation for the errorcodes module.
2010-02-14 00:39:49 +01:00
Daniele Varrazzo
8246b28563
Removed files used by the Epydoc documentation.
2010-02-14 00:39:49 +01:00