mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-02-07 12:50:32 +03:00
Cursor docs reordered
'cast()' moved in the retrieval functions. Methods only defined for DBAPI compliance moved to the bottom.
This commit is contained in:
parent
837f1e5e4f
commit
1f7774bd4e
|
@ -160,12 +160,6 @@ The ``cursor`` class
|
||||||
be made available through the standard |fetch*|_ methods.
|
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])
|
.. method:: mogrify(operation [, parameters])
|
||||||
|
|
||||||
Return a query string after arguments binding. The string returned is
|
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|.
|
The `mogrify()` method is a Psycopg extension to the |DBAPI|.
|
||||||
|
|
||||||
.. method:: cast(oid, s)
|
.. method:: setinputsizes(sizes)
|
||||||
|
|
||||||
Convert a value from the PostgreSQL string representation to a Python
|
This method is exposed in compliance with the |DBAPI|. It currently
|
||||||
object.
|
does nothing but it is safe to call it.
|
||||||
|
|
||||||
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|.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -384,18 +369,6 @@ The ``cursor`` class
|
||||||
.. __: http://www.postgresql.org/docs/9.0/static/sql-insert.html
|
.. __: 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
|
.. attribute:: query
|
||||||
|
|
||||||
Read-only attribute containing the body of the last query sent to the
|
Read-only attribute containing the body of the last query sent to the
|
||||||
|
@ -426,6 +399,21 @@ The ``cursor`` class
|
||||||
|DBAPI|.
|
|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
|
.. attribute:: tzinfo_factory
|
||||||
|
|
||||||
The time zone factory used to handle data types such as
|
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
|
.. _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
|
.. rubric:: COPY-related methods
|
||||||
|
|
||||||
.. extension::
|
.. extension::
|
||||||
|
|
Loading…
Reference in New Issue
Block a user