summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/src/extensions.rst33
1 files changed, 21 insertions, 12 deletions
diff --git a/doc/src/extensions.rst b/doc/src/extensions.rst
index 0361b3e..4093eff 100644
--- a/doc/src/extensions.rst
+++ b/doc/src/extensions.rst
@@ -489,44 +489,53 @@ Python objects. All the typecasters are automatically registered, except
`register_type()` in order to receive Unicode objects instead of strings
from the database. See :ref:`unicode-handling` for details.
+.. data:: BOOLEAN
+ DATE
+ DECIMAL
+ FLOAT
+ INTEGER
+ INTERVAL
+ LONGINTEGER
+ TIME
+ UNICODE
+
+ Typecasters for basic types. Notice that a few other ones (`~psycopg2.BINARY`,
+ `~psycopg2.DATETIME`, `~psycopg2.NUMBER`, `~psycopg2.ROWID`,
+ `~psycopg2.STRING`) are exposed by the `psycopg2` module for |DBAPI|_
+ compliance.
+
.. data:: BINARYARRAY
- BOOLEAN
BOOLEANARRAY
- DATE
DATEARRAY
DATETIMEARRAY
- DECIMAL
DECIMALARRAY
- FLOAT
FLOATARRAY
- INTEGER
INTEGERARRAY
- INTERVAL
INTERVALARRAY
- LONGINTEGER
LONGINTEGERARRAY
ROWIDARRAY
STRINGARRAY
- TIME
TIMEARRAY
- UNICODE
UNICODEARRAY
-Typecasters to convert time-related data types to Python `!datetime` objects:
+ Typecasters to convert arrays of sql types into Python lists.
.. data:: PYDATE
PYDATETIME
PYINTERVAL
PYTIME
-Typecasters to convert time-related data types to `mx.DateTime`_ objects. Only
-available if Psycopg was compiled with `!mx` support.
+ Typecasters to convert time-related data types to Python `!datetime`
+ objects.
.. data:: MXDATE
MXDATETIME
MXINTERVAL
MXTIME
+ Typecasters to convert time-related data types to `mx.DateTime`_ objects.
+ Only available if Psycopg was compiled with `!mx` support.
+
.. versionchanged:: 2.2.0
previously the `DECIMAL` typecaster and the specific time-related
typecasters (`!PY*` and `!MX*`) were not exposed by the `extensions`