]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Fixing typos (#11105)
authorAndreas Deininger <andreas@deininger.net>
Mon, 11 Mar 2024 21:40:14 +0000 (22:40 +0100)
committerFederico Caselli <cfederico87@gmail.com>
Mon, 11 Mar 2024 21:42:45 +0000 (22:42 +0100)
(cherry picked from commit 1f6a129d80453e274d1e14631f065b1afaa37b96)

Change-Id: I5d6197cae2470e3df8d09b3ca8ea186a91e4811a

14 files changed:
doc/build/changelog/changelog_20.rst
doc/build/changelog/whatsnew_20.rst
doc/build/core/custom_types.rst
doc/build/core/operators.rst
doc/build/index.rst
doc/build/orm/collection_api.rst
doc/build/orm/composites.rst
doc/build/orm/dataclasses.rst
doc/build/orm/declarative_tables.rst
doc/build/orm/persistence_techniques.rst
doc/build/orm/queryguide/columns.rst
doc/build/orm/queryguide/dml.rst
doc/build/tutorial/data_update.rst
doc/build/tutorial/orm_data_manipulation.rst

index 8e3ee935b98c7e0a3867828aa1d250f0159b5f3c..8dc3bb9c7626102017d484d58e7e5d517940e340 100644 (file)
@@ -27,7 +27,7 @@
         value the DBAPI offers for any kind of statement will be available using
         the :attr:`_engine.CursorResult.rowcount` attribute from the
         :class:`_engine.CursorResult`.  This allows the rowcount to be accessed for
-        statments such as INSERT and SELECT, to the degree supported by the DBAPI
+        statements such as INSERT and SELECT, to the degree supported by the DBAPI
         in use. The :ref:`engine_insertmanyvalues` also supports this option and
         will ensure :attr:`_engine.CursorResult.rowcount` is correctly set for a
         bulk INSERT of rows when set.
index 179ed55f2dace0626f7c2bbaabc59b99b5827d8d..230d5893ea3c9f81b271f4ad458a2543a300af07 100644 (file)
@@ -1050,7 +1050,7 @@ implemented by
 :meth:`_orm.Session.bulk_insert_mappings`, with additional enhancements.  This will optimize the
 batching of rows making use of the new :ref:`fast insertmany <change_6047>`
 feature, while also adding support for
-heterogenous parameter sets and multiple-table mappings like joined table
+heterogeneous parameter sets and multiple-table mappings like joined table
 inheritance::
 
     >>> users = session.scalars(
index f9c0205249982df7b7f9447f143226d5d5fb6711..90fc5031861d57025b2bc8044ac0d59be02f2355 100644 (file)
@@ -173,7 +173,7 @@ Backend-agnostic GUID Type
 
 .. note:: Since version 2.0 the built-in :class:`_types.Uuid` type that
     behaves similarly should be preferred. This example is presented
-    just as an example of a type decorator that recieves and returns
+    just as an example of a type decorator that receives and returns
     python objects.
 
 Receives and returns Python uuid() objects.  
index 0450aab03ee7d746bbf3fd22e38f518dd6d1184c..35c25fe75c3b199eed3f37fa869befc61f0e695b 100644 (file)
@@ -303,7 +303,7 @@ databases support:
   using the :meth:`_sql.ColumnOperators.__eq__` overloaded operator, i.e.
   ``==``, in conjunction with the ``None`` or :func:`_sql.null` value. In this
   way, there's typically not a need to use :meth:`_sql.ColumnOperators.is_`
-  explicitly, paricularly when used with a dynamic value::
+  explicitly, particularly when used with a dynamic value::
 
     >>> a = None
     >>> print(column("x") == a)
index 37b807723f33f04a8bae0fac8c05a8c26dc2dd76..4ca88fa59c54b84ee2239ebd727801414f202294 100644 (file)
@@ -168,7 +168,7 @@ SQLAlchemy Documentation
 
     * :doc:`Frequently Asked Questions <faq/index>` - A collection of common problems and solutions
     * :doc:`Glossary <glossary>` - Terms used in SQLAlchemy's documentation
-    * :doc:`Error Message Guide <errors>` - Explainations of many SQLAlchemy Errors
+    * :doc:`Error Message Guide <errors>` - Explanations of many SQLAlchemy Errors
     * :doc:`Complete table of of contents <contents>`
     * :ref:`Index <genindex>`
 
index 3d05981a8196bb941c4ae17a6c30cc2e34289ac1..be8e4ea95168f7de5290039cc53ea3019e0d0ea2 100644 (file)
@@ -129,7 +129,7 @@ Python code, as well as in a few special cases, the collection class for a
 In the absence of :paramref:`_orm.relationship.collection_class`
 or :class:`_orm.Mapped`, the default collection type is ``list``.
 
-Beyond ``list`` and ``set`` builtins, there is also support for two varities of
+Beyond ``list`` and ``set`` builtins, there is also support for two varieties of
 dictionary, described below at :ref:`orm_dictionary_collection`. There is also
 support for any arbitrary mutable sequence type can be set up as the target
 collection, with some additional configuration steps; this is described in the
index 2e625509e025d746a046f0cc6a4ccaa25441a130..b0ddb9ea4888057ed55abdef0f953517cc2187ac 100644 (file)
@@ -182,7 +182,7 @@ Other mapping forms for composites
 The :func:`_orm.composite` construct may be passed the relevant columns
 using a :func:`_orm.mapped_column` construct, a :class:`_schema.Column`,
 or the string name of an existing mapped column.   The following examples
-illustrate an equvalent mapping as that of the main section above.
+illustrate an equivalent mapping as that of the main section above.
 
 * Map columns directly, then pass to composite
 
index 1fa37938ec613a4d4ef7827a485521abc128bf88..2c45a4d019647be5b56d5454ac8cdbd13f165fbc 100644 (file)
@@ -424,7 +424,7 @@ scalar object references may make use of
 The above mapping will generate an empty list for ``Parent.children`` when a
 new ``Parent()`` object is constructed without passing ``children``, and
 similarly a ``None`` value for ``Child.parent`` when a new ``Child()`` object
-is constructed without passsing ``parent``.
+is constructed without passing ``parent``.
 
 While the :paramref:`_orm.relationship.default_factory` can be automatically
 derived from the given collection class of the :func:`_orm.relationship`
index d2ed13841f24e37012353065c9e23bdfe94342ae..b2c91981b3ecc0d84013461a74f46df040dc32e9 100644 (file)
@@ -237,7 +237,7 @@ The two qualities that :func:`_orm.mapped_column` derives from the
   In the absence of **both** of these parameters, the presence of
   ``typing.Optional[]`` within the :class:`_orm.Mapped` type annotation will be
   used to determine nullability, where ``typing.Optional[]`` means ``NULL``,
-  and the absense of ``typing.Optional[]`` means ``NOT NULL``. If there is no
+  and the absence of ``typing.Optional[]`` means ``NOT NULL``. If there is no
   ``Mapped[]`` annotation present at all, and there is no
   :paramref:`_orm.mapped_column.nullable` or
   :paramref:`_orm.mapped_column.primary_key` parameter, then SQLAlchemy's usual
@@ -539,7 +539,7 @@ specific to each attribute::
 
 When using ``Annotated`` types in this way, the configuration of the type
 may also be affected on a per-attribute basis.  For the types in the above
-example that feature explcit use of :paramref:`_orm.mapped_column.nullable`,
+example that feature explicit use of :paramref:`_orm.mapped_column.nullable`,
 we can apply the ``Optional[]`` generic modifier to any of our types so that
 the field is optional or not at the Python level, which will be independent
 of the ``NULL`` / ``NOT NULL`` setting that takes place in the database::
index 69fad33b22a94684b3c1235d058ddc5d551e243f..da914e5c939e4641b2b1d3c1495b22e3d81c3618 100644 (file)
@@ -332,7 +332,7 @@ Case 2: Table includes trigger-generated values which are not compatible with RE
 
 The ``"auto"`` setting of :paramref:`_orm.Mapper.eager_defaults` means that
 a backend that supports RETURNING will usually make use of RETURNING with
-INSERT statements in order to retreive newly generated default values.
+INSERT statements in order to retrieve newly generated default values.
 However there are limitations of server-generated values that are generated
 using triggers, such that RETURNING can't be used:
 
@@ -367,7 +367,7 @@ this looks like::
 
 On SQL Server with the pyodbc driver, an INSERT for the above table will
 not use RETURNING and will use the SQL Server ``scope_identity()`` function
-to retreive the newly generated primary key value:
+to retrieve the newly generated primary key value:
 
 .. sourcecode:: sql
 
index 93d0919ba56a15f220368991ff9f6f06d74079b1..ace6a63f4ce362ea2a982a0c2d351ad3fb79e846 100644 (file)
@@ -595,7 +595,7 @@ by default not loadable::
     ...
     sqlalchemy.exc.InvalidRequestError: 'Book.summary' is not available due to raiseload=True
 
-Only by overridding their behavior at query time, typically using
+Only by overriding their behavior at query time, typically using
 :func:`_orm.undefer` or :func:`_orm.undefer_group`, or less commonly
 :func:`_orm.defer`, may the attributes be loaded.  The example below applies
 ``undefer('*')`` to undefer all attributes, also making use of
index a2c10c1bb341945e3b246e7ba956f901fa9b4e36..a4b00da725712aaaf29af5e843536fc4e21e38f9 100644 (file)
@@ -204,7 +204,7 @@ the operation will INSERT one row at a time::
 
 .. _orm_queryguide_insert_heterogeneous_params:
 
-Using Heterogenous Parameter Dictionaries
+Using Heterogeneous Parameter Dictionaries
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 ..  Setup code, not for display
@@ -215,7 +215,7 @@ Using Heterogenous Parameter Dictionaries
   BEGIN (implicit)...
 
 The ORM bulk insert feature supports lists of parameter dictionaries that are
-"heterogenous", which basically means "individual dictionaries can have different
+"heterogeneous", which basically means "individual dictionaries can have different
 keys".   When this condition is detected,
 the ORM will break up the parameter dictionaries into groups corresponding
 to each set of keys and batch accordingly into separate INSERT statements::
@@ -552,7 +552,7 @@ are not present:
   or other multi-table mappings are not supported, since that would require multiple
   INSERT statements.
 
-* :ref:`Heterogenous parameter sets <orm_queryguide_insert_heterogeneous_params>`
+* :ref:`Heterogeneous parameter sets <orm_queryguide_insert_heterogeneous_params>`
   are not supported - each element in the VALUES set must have the same
   columns.
 
index 48cf5c058aa23bdd9014da9e37e4d47c50abc7dc..e32b6676c76d0b72f3cfa108ebd95693348fe4ec 100644 (file)
@@ -280,7 +280,7 @@ Facts about :attr:`_engine.CursorResult.rowcount`:
 
 * :attr:`_engine.CursorResult.rowcount` is not necessarily available for an UPDATE
   or DELETE statement that uses RETURNING, or for one that uses an
-  :ref:`executemany <tutorial_multiple_parameters>` execution.   The availablility
+  :ref:`executemany <tutorial_multiple_parameters>` execution.   The availability
   depends on the DBAPI module in use.
 
 * In any case where the DBAPI does not determine the rowcount for some type
index b4beae0e0705370b363cdb5b9de06f8b4f10ef17..9329d205245a93c09d9d667b1bf3a9f8cc785151 100644 (file)
@@ -157,7 +157,7 @@ Another effect of the INSERT that occurred was that the ORM has retrieved the
 new primary key identifiers for each new object; internally it normally uses
 the same :attr:`_engine.CursorResult.inserted_primary_key` accessor we
 introduced previously.   The ``squidward`` and ``krabs`` objects now have these new
-primary key identifiers associated with them and we can view them by acesssing
+primary key identifiers associated with them and we can view them by accessing
 the ``id`` attribute::
 
     >>> squidward.id