summaryrefslogtreecommitdiff
path: root/doc/extensions.rst
diff options
context:
space:
mode:
authorFederico Di Gregorio <fog@initd.org>2006-01-10 16:13:37 +0000
committerFederico Di Gregorio <fog@initd.org>2006-01-10 16:13:37 +0000
commit5871596eda7875e3a0cadb4db6fceb4c2995f3c5 (patch)
tree737b69d669e5b493eaa7b80d2e3eee08b1fd9f23 /doc/extensions.rst
parent1aed51693866f7e16afdfab1f9c1baefae30a9ef (diff)
downloadpsycopg2-5871596eda7875e3a0cadb4db6fceb4c2995f3c5.tar.gz
Some more tests in sandbox.
Diffstat (limited to 'doc/extensions.rst')
-rw-r--r--doc/extensions.rst10
1 files changed, 7 insertions, 3 deletions
diff --git a/doc/extensions.rst b/doc/extensions.rst
index faf28d4..2708ef6 100644
--- a/doc/extensions.rst
+++ b/doc/extensions.rst
@@ -20,9 +20,12 @@ Connection and cursor factories
psycopg 2 exposes two new-style classes that can be sub-classed and expanded to
adapt them to the needs of the programmer: `cursor` and `connection`. The
-`connection` class is usually sub-classed only to provide a . `cursor` is much
-more interesting, because it is the class where query building, execution and
-result type-casting into Python variables happens.
+`connection` class is usually sub-classed only to provide an easy way to create
+customized cursors but other uses are possible. `cursor` is much more
+interesting, because it is the class where query building, execution and result
+type-casting into Python variables happens.
+
+`connection` instances
Row factories
-------------
@@ -133,6 +136,7 @@ The above function call results in the SQL command::
INSERT INTO atable (apoint) VALUES ((1.23, 4.56));
+
.. _PEP-246: http://www.python.org/peps/pep-0246.html