diff options
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 |