sql module docs wordsmithing

This commit is contained in:
Daniele Varrazzo 2017-01-01 09:23:09 +01:00
parent cf40bff2e2
commit d97399daa5
2 changed files with 5 additions and 4 deletions

1
NEWS
View File

@ -6,6 +6,7 @@ What's new in psycopg 2.7
New features: New features:
- Added `~psycopg2.sql` module to generate SQL dynamically (:ticket:`#308`).
- Added :ref:`replication-support` (:ticket:`#322`). Main authors are - Added :ref:`replication-support` (:ticket:`#322`). Main authors are
Oleksandr Shulgin and Craig Ringer, who deserve a huge thank you. Oleksandr Shulgin and Craig Ringer, who deserve a huge thank you.
- Added `~psycopg2.extensions.parse_dsn()` and - Added `~psycopg2.extensions.parse_dsn()` and

View File

@ -72,9 +72,9 @@ class Composed(Composable):
""" """
A `Composable` object obtained concatenating a sequence of `Composable`. A `Composable` object obtained concatenating a sequence of `Composable`.
The object is usually created using `compose()` and the `Composable` The object is usually created using `Composable` operators. However it is
operators. However it is possible to create a `!Composed` directly possible to create a `!Composed` directly specifying a sequence of
specifying a sequence of `Composable` as arguments. `Composable` as arguments.
Example:: Example::
@ -230,7 +230,7 @@ class Identifier(Composable):
class Literal(Composable): class Literal(Composable):
""" """
Represent an SQL value to be included in a query. A `Composable` representing an SQL value to include in a query.
Usually you will want to include placeholders in the query and pass values Usually you will want to include placeholders in the query and pass values
as `~cursor.execute()` arguments. If however you really really need to as `~cursor.execute()` arguments. If however you really really need to