Skip to main content

Overview of APIs

PackageSource

Support the compatibility between flask_sqlalchemy and flask_sqlalchemy_lite. It allows users to make minimal changes when they need to migrate from either one of these two packages to each other.

The main motivation of this package is because flask_sqlalchemy_lite does not support python<=3.8. This package is designed for providing the similar usages when users have to make the flask_sqlalchemy_lite working with python<=3.8 by using flask_sqlalchemy. In this case, users can get rid of the difficulty of maintaining two sets of codes.

Docusaurus themed imageDocusaurus themed image

This graph shows the high-level overview of the whole package, where only the modules are included.

Modules

Member
Description
autoMethods used for creating the SQLAlchemy extension in the compatible mode.
backdictThe implementation of a modified dict.
backendsThe backends of the flask_sqlalchemy_compat package.
flask_sa_apiThe proxy wrapper providing the APIs mimicking the behavior of flask_sqlalchemy.SQLAlchemy().
flask_sa_lite_apiThe proxy wrapper providing the APIs mimicking the behavior of flask_sqlalchemy_lite.SQLAlchemy().
protocolsThe customized protocol type hints used by this package.
utilitiesThe extra functionalities used for hooking the original SQLAlchemy extensions.

Aliases

Member
Alias of
SQLAlchemyProtocolfsc.protocols.SQLAlchemyProtocol
SQLAlchemyLiteProtocolfsc.protocols.SQLAlchemyLiteProtocol
ModelProtocolfsc.protocols.ModelProtocol
TableNameGetterfsc.utilities.TableNameGetter
QueryGetterfsc.utilities.QueryGetter
SQLAlchemyProxyfsc.flask_sa_api.SQLAlchemyProxy
SQLAlchemyLiteProxyfsc.flask_sa_lite_api.SQLAlchemyLiteProxy
as_flask_sqlalchemyfsc.flask_sa_api.as_flask_sqlalchemy
as_flask_sqlalchemy_litefsc.flask_sa_lite_api.as_flask_sqlalchemy_lite
get_flask_sqlalchemyfsc.auto.get_flask_sqlalchemy
get_flask_sqlalchemy_proxy_verfsc.auto.get_flask_sqlalchemy_proxy_ver
get_flask_sqlalchemy_litefsc.auto.get_flask_sqlalchemy_lite
get_flask_sqlalchemy_lite_proxy_verfsc.auto.get_flask_sqlalchemy_lite_proxy_ver