Skip to content

docs: Use the article "an" for words beginning with SQL #4042

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/release-notes/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3638,7 +3638,7 @@
Fix the behaviour of DTOs such that they will no longer access fields that have
been included. This behaviour would previously cause issues when these
attributes were either costly or impossible to access (e.g. lazy loaded
relationships of a SQLAlchemy model).
relationships of an SQLAlchemy model).

.. change:: DTO | Regression: ``DTOData.create_instance`` ignores renaming
:type: bugfix
Expand Down Expand Up @@ -4176,7 +4176,7 @@
:type: feature
:pr: 1852

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

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

.. change:: Fix inconsistent parsing of unix timestamp between Pydantic and cattrs
Expand Down Expand Up @@ -5442,7 +5442,7 @@

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ How it works
============

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

The following two examples are functionally equivalent:
Expand Down
6 changes: 3 additions & 3 deletions docs/usage/dto/1-abstract-dto.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ Using DTO Factories
-------------------

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

.. literalinclude:: /examples/data_transfer_objects/factory/simple_dto_factory_example.py
:caption: A SQLAlchemy model DTO
:caption: An SQLAlchemy model DTO
:language: python

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

Expand Down
Loading