summaryrefslogtreecommitdiff
path: root/doc/extensions.rst
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2010-02-11 05:17:10 +0000
committerFederico Di Gregorio <fog@initd.org>2010-02-14 00:39:48 +0100
commit0694b85e59a609fbaa0a22792a2b4593b3440e82 (patch)
tree2a969d20b21ae8b16e0be399491c5282d79251e6 /doc/extensions.rst
parent9a6c4c4c93c5def0fa808876d9f2aacebbe1ac2f (diff)
downloadpsycopg2-0694b85e59a609fbaa0a22792a2b4593b3440e82.tar.gz
Added documentation about Unicode handling.
Diffstat (limited to 'doc/extensions.rst')
-rw-r--r--doc/extensions.rst34
1 files changed, 34 insertions, 0 deletions
diff --git a/doc/extensions.rst b/doc/extensions.rst
index 5af5fbe..9fdaaf1 100644
--- a/doc/extensions.rst
+++ b/doc/extensions.rst
@@ -236,6 +236,7 @@ The module exports a few exceptions in addition to the :ref:`standard ones
It is a subclass of :exc:`~psycopg2.OperationalError`
+
.. index::
pair: Isolation level; Constants
@@ -360,3 +361,36 @@ can be read from the :data:`~connection.status` attribute.
Used internally.
+
+Additional database types
+-------------------------
+
+The :mod:`!extensions` module includes typecasters for many standard
+PostgreSQL types. These objects allow the conversion of returned data into
+Python objects. All the typecasters are automatically registered, except
+:data:`UNICODE` and :data:`UNICODEARRAY`: you can register them using
+:func:`register_type` in order to receive Unicode objects instead of strings
+from the database. See :ref:`unicode-handling` for details.
+
+.. data:: BINARYARRAY
+.. data:: BOOLEAN
+.. data:: BOOLEANARRAY
+.. data:: DATE
+.. data:: DATEARRAY
+.. data:: DATETIMEARRAY
+.. data:: DECIMALARRAY
+.. data:: FLOAT
+.. data:: FLOATARRAY
+.. data:: INTEGER
+.. data:: INTEGERARRAY
+.. data:: INTERVAL
+.. data:: INTERVALARRAY
+.. data:: LONGINTEGER
+.. data:: LONGINTEGERARRAY
+.. data:: ROWIDARRAY
+.. data:: STRINGARRAY
+.. data:: TIME
+.. data:: TIMEARRAY
+.. data:: UNICODE
+.. data:: UNICODEARRAY
+