Skip to content

Commit 253d840

Browse files
authored
docs: update sqlalchemy links - DIA-53029 (#83)
DIA-53029 #close
1 parent ce2f573 commit 253d840

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
Fastapi-SQLA is an [SQLAlchemy] extension for [FastAPI] easy to setup with support for
1111
pagination, asyncio, and [pytest].
12-
It supports SQLAlchemy>=1.3 and is fully compliant with [SQLAlchemy 2.0] syntax.
12+
It supports SQLAlchemy>=1.3 and is fully compliant with [SQLAlchemy 2.0].
1313
It is developped, maintained and used on production by the team at [@dialoguemd] with
1414
love from Montreal 🇨🇦.
1515

@@ -236,8 +236,7 @@ def all_users(paginate: Paginate = Depends()):
236236
By default:
237237

238238
* It returns pages of 10 items, up to 100 items;
239-
* Total number of items in the collection is queried using [`Query.count`] for legacy
240-
orm queries and the equivalent for 2.0 style queries.
239+
* Total number of items in the collection is queried using [`Query.count`].
241240
* Response example for `/users?offset=40&limit=10`:
242241

243242
```json
@@ -565,16 +564,16 @@ $ poetry run pytest
565564
$ poetry run tox
566565
```
567566

568-
[`sqlalchemy.create_engine`]: https://docs.sqlalchemy.org/en/13/core/engines.html?highlight=create_engine#sqlalchemy.create_engine
569-
[`Query.count`]: https://docs.sqlalchemy.org/en/13/orm/query.html#sqlalchemy.orm.query.Query.count
567+
[`sqlalchemy.create_engine`]: https://docs.sqlalchemy.org/en/20/core/engines.html#sqlalchemy.create_engine
568+
[`Query.count`]: https://docs.sqlalchemy.org/en/20/orm/queryguide/query.html#sqlalchemy.orm.Query.count
570569
[pytest options]: https://docs.pytest.org/en/stable/reference.html#confval-usefixtures
571570
[FastAPI]: https://fastapi.tiangolo.com/
572571
[FastAPI dependency injection]: https://fastapi.tiangolo.com/tutorial/dependencies/
573572
[FastAPI background tasks]: https://fastapi.tiangolo.com/tutorial/background-tasks/
574573
[SQLAlchemy]: http://sqlalchemy.org/
575574
[SQLAlchemy 2.0]: https://docs.sqlalchemy.org/en/20/changelog/migration_20.html
576575
[`asyncpg`]: https://magicstack.github.io/asyncpg/current/
577-
[scalars]: (https://docs.sqlalchemy.org/en/14/core/connections.html?highlight=scalars#sqlalchemy.engine.Result.scalars),
576+
[scalars]: https://docs.sqlalchemy.org/en/20/core/connections.html#sqlalchemy.engine.Result.scalars
578577
[alembic]: https://alembic.sqlalchemy.org/
579578
[pytest]: https://docs.pytest.org/
580579
[@dialoguemd]: https://github.com/dialoguemd

0 commit comments

Comments
 (0)