diff options
author | Lele Gaifax <lele@metapensiero.it> | 2021-01-24 13:59:03 -0500 |
---|---|---|
committer | sqla-tester <sqla-tester@sqlalchemy.org> | 2021-01-24 13:59:03 -0500 |
commit | f04147d9490df68b1fe1bb53991062d82017f865 (patch) | |
tree | eebea42a0791544c9a10f1d7055a17497cf4108e /lib/sqlalchemy/dialects/postgresql | |
parent | 2df6eb140b4feb86d7cc99c0c976d1b22eb6e25b (diff) | |
download | sqlalchemy-f04147d9490df68b1fe1bb53991062d82017f865.tar.gz |
Fix many spell glitches in docstrings and comments
These were revealed by running `pylint --disable all --enable spelling --spelling-dict en_US` over all sources.
Closes: #5868
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/5868
Pull-request-sha: bb249195d92e3b806e81ecf1192d5a1b3cd5db48
Change-Id: I96080ec93a9fbd20ce21e9e16265b3c77f22bb14
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql')
-rw-r--r-- | lib/sqlalchemy/dialects/postgresql/base.py | 8 | ||||
-rw-r--r-- | lib/sqlalchemy/dialects/postgresql/ext.py | 2 | ||||
-rw-r--r-- | lib/sqlalchemy/dialects/postgresql/json.py | 2 | ||||
-rw-r--r-- | lib/sqlalchemy/dialects/postgresql/psycopg2.py | 4 | ||||
-rw-r--r-- | lib/sqlalchemy/dialects/postgresql/ranges.py | 6 |
5 files changed, 11 insertions, 11 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/base.py b/lib/sqlalchemy/dialects/postgresql/base.py index fd258bc5a..08d7cd9e5 100644 --- a/lib/sqlalchemy/dialects/postgresql/base.py +++ b/lib/sqlalchemy/dialects/postgresql/base.py @@ -234,7 +234,7 @@ that will be implicitly referred towards when a particular table or other object is referenced in a SQL statement. As detailed in the next section :ref:`postgresql_schema_reflection`, SQLAlchemy is generally organized around the concept of keeping this variable at its default value of ``public``, -however, in order to have it set to any arbirary name or names when connections +however, in order to have it set to any arbitrary name or names when connections are used automatically, the "SET SESSION search_path" command may be invoked for all connections in a pool using the following event handler, as discussed at :ref:`schema_set_default_connections`:: @@ -255,7 +255,7 @@ at :ref:`schema_set_default_connections`:: The reason the recipe is complicated by use of the ``.autocommit`` DBAPI attribute is so that when the ``SET SESSION search_path`` directive is invoked, -it is invoked outside of the scope of any tranasction and therefore will not +it is invoked outside of the scope of any transaction and therefore will not be reverted when the DBAPI connection has a rollback. .. seealso:: @@ -1189,7 +1189,7 @@ Using JSON/JSONB with ARRAY ^^^^^^^^^^^^^^^^^^^^^^^^^^^ Similar to using ENUM, prior to SQLAlchemy 1.3.17, for an ARRAY of JSON/JSONB -we need to render the appropriate CAST. Current psycopg2 drivers accomodate +we need to render the appropriate CAST. Current psycopg2 drivers accommodate the result set correctly without any special steps. .. versionchanged:: 1.3.17 The combination of JSON/JSONB and ARRAY is now @@ -2262,7 +2262,7 @@ class PGCompiler(compiler.SQLCompiler): def fetch_clause(self, select, **kw): # pg requires parens for non literal clauses. It's also required for # bind parameters if a ::type casts is used by the driver (asyncpg), - # so it's easies to just always add it + # so it's easiest to just always add it text = "" if select._offset_clause is not None: text += "\n OFFSET (%s) ROWS" % self.process( diff --git a/lib/sqlalchemy/dialects/postgresql/ext.py b/lib/sqlalchemy/dialects/postgresql/ext.py index 908a0b675..1bd1e5258 100644 --- a/lib/sqlalchemy/dialects/postgresql/ext.py +++ b/lib/sqlalchemy/dialects/postgresql/ext.py @@ -87,7 +87,7 @@ class aggregate_order_by(expression.ColumnElement): class ExcludeConstraint(ColumnCollectionConstraint): """A table-level EXCLUDE constraint. - Defines an EXCLUDE constraint as described in the `postgres + Defines an EXCLUDE constraint as described in the `PostgreSQL documentation`__. __ http://www.postgresql.org/docs/9.0/static/sql-createtable.html#SQL-CREATETABLE-EXCLUDE diff --git a/lib/sqlalchemy/dialects/postgresql/json.py b/lib/sqlalchemy/dialects/postgresql/json.py index a5dfa40d6..1b165630c 100644 --- a/lib/sqlalchemy/dialects/postgresql/json.py +++ b/lib/sqlalchemy/dialects/postgresql/json.py @@ -107,7 +107,7 @@ class JSON(sqltypes.JSON): .. seealso:: - :class:`_types.JSON` - main documenation for the generic + :class:`_types.JSON` - main documentation for the generic cross-platform JSON datatype. The operators provided by the PostgreSQL version of :class:`_types.JSON` diff --git a/lib/sqlalchemy/dialects/postgresql/psycopg2.py b/lib/sqlalchemy/dialects/postgresql/psycopg2.py index c8fc717ee..b1d27c6fa 100644 --- a/lib/sqlalchemy/dialects/postgresql/psycopg2.py +++ b/lib/sqlalchemy/dialects/postgresql/psycopg2.py @@ -74,8 +74,8 @@ using ``host`` as an additional keyword argument:: .. _psycopg2_multi_host: -Specfiying multiple fallback hosts ------------------------------------- +Specifiying multiple fallback hosts +----------------------------------- psycopg2 supports multiple connection points in the connection string. When the ``host`` parameter is used multiple times in the query section of diff --git a/lib/sqlalchemy/dialects/postgresql/ranges.py b/lib/sqlalchemy/dialects/postgresql/ranges.py index 1f6f75f6d..ab44fa590 100644 --- a/lib/sqlalchemy/dialects/postgresql/ranges.py +++ b/lib/sqlalchemy/dialects/postgresql/ranges.py @@ -13,7 +13,7 @@ __all__ = ("INT4RANGE", "INT8RANGE", "NUMRANGE") class RangeOperators(object): """ This mixin provides functionality for the Range Operators - listed in Table 9-44 of the `postgres documentation`__ for Range + listed in Table 9-44 of the `PostgreSQL documentation`__ for Range Functions and Operators. It is used by all the range types provided in the ``postgres`` dialect and can likely be used for any range types you create yourself. @@ -21,7 +21,7 @@ class RangeOperators(object): __ http://www.postgresql.org/docs/devel/static/functions-range.html No extra support is provided for the Range Functions listed in - Table 9-45 of the postgres documentation. For these, the normal + Table 9-45 of the PostgreSQL documentation. For these, the normal :func:`~sqlalchemy.sql.expression.func` object should be used. """ @@ -94,7 +94,7 @@ class RangeOperators(object): def __add__(self, other): """Range expression. Returns the union of the two ranges. Will raise an exception if the resulting range is not - contigous. + contiguous. """ return self.expr.op("+")(other) |