diff options
| author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2011-02-19 00:44:24 +0000 |
|---|---|---|
| committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2011-02-19 00:44:24 +0000 |
| commit | 1f7774bd4e4efbd8c67dfca82b31663e9b89efca (patch) | |
| tree | 4446891dc1aafe7adb027c2a6e4e22fed8949a7c | |
| parent | 837f1e5e4fe3c4d7a33d472da2f75f515d8b3286 (diff) | |
| download | psycopg2-1f7774bd4e4efbd8c67dfca82b31663e9b89efca.tar.gz | |
Cursor docs reordered
'cast()' moved in the retrieval functions. Methods only defined for
DBAPI compliance moved to the bottom.
| -rw-r--r-- | doc/src/cursor.rst | 63 |
1 files changed, 32 insertions, 31 deletions
diff --git a/doc/src/cursor.rst b/doc/src/cursor.rst index 0d1fdc6..c983e8f 100644 --- a/doc/src/cursor.rst +++ b/doc/src/cursor.rst @@ -160,12 +160,6 @@ The ``cursor`` class be made available through the standard |fetch*|_ methods. - .. method:: setinputsizes(sizes) - - This method is exposed in compliance with the |DBAPI|. It currently - does nothing but it is safe to call it. - - .. method:: mogrify(operation [, parameters]) Return a query string after arguments binding. The string returned is @@ -179,19 +173,10 @@ The ``cursor`` class The `mogrify()` method is a Psycopg extension to the |DBAPI|. - .. method:: cast(oid, s) - - Convert a value from the PostgreSQL string representation to a Python - object. - - Use the most specific of the typecasters registered by - `~psycopg2.extensions.register_type()`. - - .. versionadded:: 2.4 - - .. extension:: - - The `cast()` method is a Psycopg extension to the |DBAPI|. + .. method:: setinputsizes(sizes) + + This method is exposed in compliance with the |DBAPI|. It currently + does nothing but it is safe to call it. @@ -384,18 +369,6 @@ The ``cursor`` class .. __: http://www.postgresql.org/docs/9.0/static/sql-insert.html - .. method:: nextset() - - This method is not supported (PostgreSQL does not have multiple data - sets) and will raise a `~psycopg2.NotSupportedError` exception. - - - .. method:: setoutputsize(size [, column]) - - This method is exposed in compliance with the |DBAPI|. It currently - does nothing but it is safe to call it. - - .. attribute:: query Read-only attribute containing the body of the last query sent to the @@ -426,6 +399,21 @@ The ``cursor`` class |DBAPI|. + .. method:: cast(oid, s) + + Convert a value from the PostgreSQL string representation to a Python + object. + + Use the most specific of the typecasters registered by + `~psycopg2.extensions.register_type()`. + + .. versionadded:: 2.4 + + .. extension:: + + The `cast()` method is a Psycopg extension to the |DBAPI|. + + .. attribute:: tzinfo_factory The time zone factory used to handle data types such as @@ -436,6 +424,19 @@ The ``cursor`` class .. _tzinfo: http://docs.python.org/library/datetime.html#tzinfo-objects + .. method:: nextset() + + This method is not supported (PostgreSQL does not have multiple data + sets) and will raise a `~psycopg2.NotSupportedError` exception. + + + .. method:: setoutputsize(size [, column]) + + This method is exposed in compliance with the |DBAPI|. It currently + does nothing but it is safe to call it. + + + .. rubric:: COPY-related methods .. extension:: |
