Fastapi-sqla

Latest version: v3.1.2

Safety actively analyzes 623248 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 8

3.1.2

3.1.1

Fix
* Publish failed because of pytest-watch - DIA-65344 ([115](https://github.com/dialoguemd/fastapi-sqla/issues/115)) ([`4dc9710`](https://github.com/dialoguemd/fastapi-sqla/commit/4dc971022fb2d92cbb83a4d56d718d673afbfe93))

3.1.0

Feature
* Add support for SQLModel - DIA-65344 ([114](https://github.com/dialoguemd/fastapi-sqla/issues/114)) ([`cd535b2`](https://github.com/dialoguemd/fastapi-sqla/commit/cd535b2d3cd3148afab121b873bac304dab12d86))

3.0.2

Fix
* Pytest plugin event-loop deprecation warning ([111](https://github.com/dialoguemd/fastapi-sqla/issues/111)) ([`19b2c87`](https://github.com/dialoguemd/fastapi-sqla/commit/19b2c87404aeb60f8a0ba0667f064a24749ffba2))

3.0.1

Fix
* **pytest_plugin:** Dont_patch_engines marker writes to db - DIA-61984 ([108](https://github.com/dialoguemd/fastapi-sqla/issues/108)) ([`8f76222`](https://github.com/dialoguemd/fastapi-sqla/commit/8f76222976728fe2fa33a2508c36797e1f6eda24))

3.0.0

Introduce support for multiple sessions running in parallel. To configure a new separate session, you just have to set a `fastapi_sqla__MY_KEY__sqlalchemy_url` environment variable and it will be configured. See the README for more details about how to use it.

Note that the default session is still configured via `sqlalchemy_url` and all the existing functions default to using the default session if the key is not specified.

Breaking changes
- Remove support for configuring a separate async session with `async_sqlalchemy_url`. The supported way is now to use an async dialect in the default connection string, or use another session with the proper format.
- The `Session`, `AsyncSession`, `Paginate` and `AsyncPaginate` dependencies are now using the `Annotated` form recommended by FastAPI since version 0.95.0. This means that you'll need to change the usage of the dependencies like: `session: Session = Depends()` -> `session: Session`.
- Drop support for python versions lower than `3.9`. This was already the case since we were only testing with those versions, but the support is now explicitly removed from the `pyproject.toml`.
- The library now requires FastAPI `>= 0.95.1`

What's Changed
* feat: support multiple sessions - DIA-61984 by arththebird in https://github.com/dialoguemd/fastapi-sqla/pull/105


**Full Changelog**: https://github.com/dialoguemd/fastapi-sqla/compare/v2.10.1...v3.0.0

Page 1 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.