summaryrefslogtreecommitdiff
path: root/doc/src/sql.rst
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2017-03-16 00:12:13 +0000
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2017-03-16 00:55:20 +0000
commitc7f569042642c7cbed7b9a935092a218c046d296 (patch)
treee490cb13b36df30750c592c04b0bd2c647c96997 /doc/src/sql.rst
parent3bfbd3a0a546b2b5bf30476dfa838cd05ddab442 (diff)
downloadpsycopg2-sql-copy.tar.gz
Added docs about the usability of sql objects with copy_expert()sql-copy
See issue #529.
Diffstat (limited to 'doc/src/sql.rst')
-rw-r--r--doc/src/sql.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/src/sql.rst b/doc/src/sql.rst
index 0aee451..fe807c6 100644
--- a/doc/src/sql.rst
+++ b/doc/src/sql.rst
@@ -55,6 +55,11 @@ from the query parameters::
.format(sql.Identifier('my_table')),
[10, 20])
+The objects exposed by the `!sql` module can be used to compose a query as a
+Python string (using the `~Composable.as_string()` method) or passed directly
+to cursor methods such as `~cursor.execute()`, `~cursor.executemany()`,
+`~cursor.copy_expert()`.
+
.. autoclass:: Composable