|
9 | 9 |
|
10 | 10 | Fastapi-SQLA is an [SQLAlchemy] extension for [FastAPI] easy to setup with support for |
11 | 11 | 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]. |
13 | 13 | It is developped, maintained and used on production by the team at [@dialoguemd] with |
14 | 14 | love from Montreal 🇨🇦. |
15 | 15 |
|
@@ -236,8 +236,7 @@ def all_users(paginate: Paginate = Depends()): |
236 | 236 | By default: |
237 | 237 |
|
238 | 238 | * 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`]. |
241 | 240 | * Response example for `/users?offset=40&limit=10`: |
242 | 241 |
|
243 | 242 | ```json |
@@ -565,16 +564,16 @@ $ poetry run pytest |
565 | 564 | $ poetry run tox |
566 | 565 | ``` |
567 | 566 |
|
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 |
570 | 569 | [pytest options]: https://docs.pytest.org/en/stable/reference.html#confval-usefixtures |
571 | 570 | [FastAPI]: https://fastapi.tiangolo.com/ |
572 | 571 | [FastAPI dependency injection]: https://fastapi.tiangolo.com/tutorial/dependencies/ |
573 | 572 | [FastAPI background tasks]: https://fastapi.tiangolo.com/tutorial/background-tasks/ |
574 | 573 | [SQLAlchemy]: http://sqlalchemy.org/ |
575 | 574 | [SQLAlchemy 2.0]: https://docs.sqlalchemy.org/en/20/changelog/migration_20.html |
576 | 575 | [`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 |
578 | 577 | [alembic]: https://alembic.sqlalchemy.org/ |
579 | 578 | [pytest]: https://docs.pytest.org/ |
580 | 579 | [@dialoguemd]: https://github.com/dialoguemd |
0 commit comments