diff options
author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2017-03-16 00:12:13 +0000 |
---|---|---|
committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2017-03-16 00:55:20 +0000 |
commit | c7f569042642c7cbed7b9a935092a218c046d296 (patch) | |
tree | e490cb13b36df30750c592c04b0bd2c647c96997 /lib/sql.py | |
parent | 3bfbd3a0a546b2b5bf30476dfa838cd05ddab442 (diff) | |
download | psycopg2-c7f569042642c7cbed7b9a935092a218c046d296.tar.gz |
Added docs about the usability of sql objects with copy_expert()sql-copy
See issue #529.
Diffstat (limited to 'lib/sql.py')
-rw-r--r-- | lib/sql.py | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -36,8 +36,9 @@ class Composable(object): """ Abstract base class for objects that can be used to compose an SQL string. - `!Composable` objects can be passed directly to `~cursor.execute()` and - `~cursor.executemany()` in place of the query string. + `!Composable` objects can be passed directly to `~cursor.execute()`, + `~cursor.executemany()`, `~cursor.copy_expert()` in place of the query + string. `!Composable` objects can be joined using the ``+`` operator: the result will be a `Composed` instance containing the objects joined. The operator @@ -58,9 +59,9 @@ class Composable(object): :param context: the context to evaluate the string into. :type context: `connection` or `cursor` - The method is automatically invoked by `~cursor.execute()` and - `~cursor.executemany()` if a `!Composable` is passed instead of the - query string. + The method is automatically invoked by `~cursor.execute()`, + `~cursor.executemany()`, `~cursor.copy_expert()` if a `!Composable` is + passed instead of the query string. """ raise NotImplementedError |