Aiohttp-sqlalchemy

Latest version: v1.0.1

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

Scan your dependencies

Page 6 of 7

0.10

------------
**Added**

* Added support Python 3.7.

0.9

-----------
**Added**

* Support of `organized handlers in class
<https://docs.aiohttp.org/en/stable/web_quickstart.html#organizing-handlers-in-classes>`_
added to ``sa_decorator(key)``.

**Removed**

* Removed support of ``AsyncEngine`` type in ``sa_bind()`` signature. Use
``async_sessionmaker(engine, AsyncSession)`` or custom session factory returning
``AsyncSession`` instance.

0.8

-----------
**Changed**

* Rename first argument from ``arg`` to ``factory`` in ``sa_bind()`` signature.

**Deprecated**

* ``AsyncEngine`` type is deprecated in ``sa_bind()`` signature. Use
``async_sessionmaker(engine, AsyncSession)`` or custom session factory returning
``AsyncSession`` instance.

0.7

-----------
**Changed**

* Usage ``sqlalchemy.orm.sessionmaker`` instance is recomended as a first argument
for ``aiohttp_sqlalchemy.sa_bind()`` signature. See examples in documetation.

**Removed**

* Removed support of ``request.config_dict.get('sa_main')`` and
``request.app['sa_main']`` expressions. Use a ``request['sa_main'].bind`` expression.

0.6

-----------
**Added**

* Add support ``sqlalchemy.orm.sessionmaker`` as a first argument in function
``sa_bind(arg, key, middleware)``.

**Changed**

* Argument ``engine: AsyncEngine`` changed to ``arg: Union[AsyncEngine, sessionmaker]``
in ``sa_bind()`` signature.

**Deprecated**

* Deprecated support of ``request.config_dict.get('sa_main')`` and
``request.app['sa_main']`` expressions. Use a ``request['sa_main'].bind`` expression.

**Removed**

* Deprecated class ``views.SAViewMixin`` is removed. Use ``views.SAAbstractView``;
* Deprecated attribute ``SAView.sa_main_session`` is removed. Use method
``SAView.sa_session(key: str = 'sa_main')``.

0.5

-----------
**Removed**

* Deprecated function ``aiohttp_sqlalchemy.sa_engine()`` is removed. Use
``aiohttp_sqlalchemy.sa_bind()``.

**Deprecated**

* Undocumented class ``views.SAViewMixin`` is deprecated. Use ``views.SAAbstractView``.

Page 6 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.