]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Fix typos in 'Engine and Connection Use'
authoraplatkouski <5857672+aplatkouski@users.noreply.github.com>
Tue, 16 Jun 2020 18:26:36 +0000 (21:26 +0300)
committeraplatkouski <5857672+aplatkouski@users.noreply.github.com>
Tue, 16 Jun 2020 18:26:56 +0000 (21:26 +0300)
Signed-off-by: aplatkouski <5857672+aplatkouski@users.noreply.github.com>
doc/build/changelog/migration_14.rst
doc/build/core/connections.rst
lib/sqlalchemy/engine/base.py
lib/sqlalchemy/engine/cursor.py
lib/sqlalchemy/engine/interfaces.py
lib/sqlalchemy/engine/result.py
lib/sqlalchemy/engine/url.py
lib/sqlalchemy/event/base.py

index 3314e8d9b637ad098b6cb4e774591ec562dd9cec..ba929911d2d881577c2f6a53475a0d15f70d691f 100644 (file)
@@ -1540,7 +1540,7 @@ The behavior was first introduced in 0.9 and was part of the larger change of
 allowing for right nested joins as described at :ref:`feature_joins_09`.
 However the SQLite workaround produced many regressions in the 2013-2014
 period due to its complexity. In 2016, the dialect was modified so that the
-join rewriting logic would only occur for SQLite verisons prior to 3.7.16 after
+join rewriting logic would only occur for SQLite versions prior to 3.7.16 after
 bisection was used to  identify where SQLite fixed its support for this
 construct, and no further issues were reported against the behavior (even
 though some bugs were found internally).    It is now anticipated that there
index 7869e61223721761132d651451460c9ebaec9eb8..976ac27e14c1e1685b219316b9befb11390d3ea4 100644 (file)
@@ -492,7 +492,7 @@ The introduction on using :meth:`_engine.Connection.execute` made use of the
 :func:`_expression.text` construct in order to illustrate how textual SQL statements
 may be invoked.  When working with SQLAlchemy, textual SQL is actually more
 of the exception rather than the norm, as the Core expression language
-and the ORM both abstract away the textual representation of SQL.  Hpwever, the
+and the ORM both abstract away the textual representation of SQL.  However, the
 :func:`_expression.text` construct itself also provides some abstraction of textual
 SQL in that it normalizes how bound parameters are passed, as well as that
 it supports datatyping behavior for parameters and result set rows.
index e7eec879624d66c8af2a2d2cc247808e76bc9a1a..aec1095795cae5ea988912538b7b667b6c6d5d1e 100644 (file)
@@ -42,7 +42,7 @@ class Connection(Connectable):
     possible that the underlying DBAPI connection may not support shared
     access between threads.  Check the DBAPI documentation for details.
 
-    The Connection object represents a single dbapi connection checked out
+    The Connection object represents a single DBAPI connection checked out
     from the connection pool. In this state, the connection pool has no affect
     upon the connection, including its expiration or timeout state. For the
     connection pool to properly manage connections, connections should be
@@ -117,7 +117,7 @@ class Connection(Connectable):
         return self._execution_options.get("schema_translate_map", None)
 
     def schema_for_object(self, obj):
-        """return the schema name for the given schema item taking into
+        """Return the schema name for the given schema item taking into
         account current schema translate map.
 
         """
index 3c672020bd3f9b0b1762e595c61481d81eb365f1..19267b0b83c7ba6854b00e27db90cad996ca5cf0 100644 (file)
@@ -1534,7 +1534,7 @@ class BaseCursorResult(object):
 
     @property
     def lastrowid(self):
-        """return the 'lastrowid' accessor on the DBAPI cursor.
+        """Return the 'lastrowid' accessor on the DBAPI cursor.
 
         This is a DBAPI specific method and is only functional
         for those backends which support it, for statements
index 76d6b889e1eab4d15a32cbc98263fbbf89f54597..a39c2e296be41c5228220aab9a181b5c6642371c 100644 (file)
@@ -446,7 +446,7 @@ class Dialect(object):
         """Check the existence of a particular index name in the database.
 
         Given a :class:`_engine.Connection` object, a string
-        `table_name` and stiring index name, return True if an index of the
+        `table_name` and string index name, return True if an index of the
         given name on the given table exists, false otherwise.
 
         The :class:`.DefaultDialect` implements this in terms of the
index b29bc22d44fe6a1c264d4884669acfccbbb491de..e19d4ad371fda0322442c1178214a5f6f8fdc86d 100644 (file)
@@ -891,7 +891,7 @@ class Result(InPlaceGenerative):
            None and the ending value.   Prefer to use iterative / collection
            methods which support scalar None values.
 
-        this method is provided for backwards compatibility with
+        This method is provided for backwards compatibility with
         SQLAlchemy 1.x.x.
 
         To fetch the first row of a result only, use the
@@ -921,7 +921,7 @@ class Result(InPlaceGenerative):
 
         When all rows are exhausted, returns an empty list.
 
-        this method is provided for backwards compatibility with
+        This method is provided for backwards compatibility with
         SQLAlchemy 1.x.x.
 
         To fetch rows in groups, use the :meth:`._result.Result.partitions`
index 7b7a0047ce18089bb17ef2dc868864c02c442474..f0685d9e33677d9737fbae62d83e252b18631fd4 100644 (file)
@@ -29,7 +29,7 @@ class URL(object):
 
     This object is suitable to be passed directly to a
     :func:`~sqlalchemy.create_engine` call.  The fields of the URL are parsed
-    from a string by the :func:`.make_url` function.  the string
+    from a string by the :func:`.make_url` function.  The string
     format of the URL is an RFC-1738-style string.
 
     All initialization parameters are available as public attributes.
index 2eb8846f6137a65855cbae223f95492e1ab177f2..a87c1fe4484962d77911b5278307284f79cd49a9 100644 (file)
@@ -213,7 +213,7 @@ class Events(util.with_metaclass(_EventMeta, object)):
         # This allows an Events subclass to define additional utility
         # methods made available to the target via
         # "self.dispatch._events.<utilitymethod>"
-        # @staticemethod to allow easy "super" calls while in a metaclass
+        # @staticmethod to allow easy "super" calls while in a metaclass
         # constructor.
         cls.dispatch = dispatch_cls(None)
         dispatch_cls._events = cls