Skip to content

Commit 71ed9ff

Browse files
eandersonscofin
authored andcommitted
Use the article "an" for words beginning with SQL
Article "a" was replaced with "an" for words beginning with "SQL" as the pronunciation starts with a vowel sound: /ˌɛsˌkjuˈɛl/ (S-Q-L; that is, if project authors do not prefer the alternative pronunciation /ˈsiːkwəl/ ("sequel")). For reference: - https://www.scribbr.com/commonly-confused-words/a-vs-an/#acronyms - https://en.wikipedia.org/wiki/SQL
1 parent 1fad18f commit 71ed9ff

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

docs/release-notes/changelog.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3638,7 +3638,7 @@
36383638
Fix the behaviour of DTOs such that they will no longer access fields that have
36393639
been included. This behaviour would previously cause issues when these
36403640
attributes were either costly or impossible to access (e.g. lazy loaded
3641-
relationships of a SQLAlchemy model).
3641+
relationships of an SQLAlchemy model).
36423642

36433643
.. change:: DTO | Regression: ``DTOData.create_instance`` ignores renaming
36443644
:type: bugfix
@@ -4176,7 +4176,7 @@
41764176
:type: feature
41774177
:pr: 1852
41784178

4179-
Replace the nondescript :exc:`KeyError` raised when a SQLAlchemy DTO is
4179+
Replace the nondescript :exc:`KeyError` raised when an SQLAlchemy DTO is
41804180
constructed from a model that is missing a type annotation for an included
41814181
column with an :exc:`ImproperlyConfiguredException`, including an explicit error
41824182
message, pointing at the potential cause.
@@ -5126,7 +5126,7 @@
51265126
SQLAlchemy 1 support has been dropped.
51275127

51285128
.. note::
5129-
If you rely on SQLAlchemy 1, you can stick to Starlite *1.51* for now. In the future, a SQLAlchemy 1 plugin
5129+
If you rely on SQLAlchemy 1, you can stick to Starlite *1.51* for now. In the future, an SQLAlchemy 1 plugin
51305130
may be released as a standalone package.
51315131

51325132
.. change:: Fix inconsistent parsing of unix timestamp between Pydantic and cattrs
@@ -5442,7 +5442,7 @@
54425442

54435443
Add a a ``repository`` module to ``contrib``, providing abstract base classes
54445444
to implement the repository pattern. Also added was the ``contrib.repository.sqlalchemy``
5445-
module, implementing a SQLAlchemy repository, offering hand-tuned abstractions
5445+
module, implementing an SQLAlchemy repository, offering hand-tuned abstractions
54465446
over commonly used tasks, such as handling of object sessions, inserting,
54475447
updating and upserting individual models or collections.
54485448

docs/usage/databases/sqlalchemy/plugins/sqlalchemy_serialization_plugin.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ How it works
2727
============
2828

2929
The plugin works by defining a :class:`SQLAlchemyDTO <advanced_alchemy.extensions.litestar.dto.SQLAlchemyDTO>` class for each
30-
handler ``data`` or return annotation that is a SQLAlchemy model, or collection of SQLAlchemy models, that isn't
30+
handler ``data`` or return annotation that is an SQLAlchemy model, or a collection of SQLAlchemy models, that isn't
3131
otherwise managed by an explicitly defined DTO class.
3232

3333
The following two examples are functionally equivalent:

docs/usage/dto/1-abstract-dto.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ Using DTO Factories
1717
-------------------
1818

1919
DTO factories are used to create DTOs for use with a particular data modelling library. The following example creates
20-
a DTO for use with a SQLAlchemy model:
20+
a DTO for use with an SQLAlchemy model:
2121

2222
.. literalinclude:: /examples/data_transfer_objects/factory/simple_dto_factory_example.py
23-
:caption: A SQLAlchemy model DTO
23+
:caption: An SQLAlchemy model DTO
2424
:language: python
2525

26-
Here we see that a SQLAlchemy model is used as both the ``data`` and return annotation for the handler, and while
26+
Here we see that an SQLAlchemy model is used as both the ``data`` and return annotation for the handler, and while
2727
Litestar does not natively support encoding/decoding to/from SQLAlchemy models, through
2828
:class:`SQLAlchemyDTO <advanced_alchemy.extensions.litestar.dto.SQLAlchemyDTO>` we can do this.
2929

0 commit comments

Comments
 (0)