Skip to main content

SQLAlchemySharedProtocol

TypePrivateSource

db: SQLAlchemySharedProtocol

Protocol compatible with both Flask SQLAlchemy and Flask SQLAlchemy Lite.

This protocol only implments limited functionalies that are provided by both flask_sqlalchemy.SQLAlchemy and flask_sqlalchemy_lite.SQLAlchemy. Since this procol has the minimal coverage, it can be used for generalized purposes.

Protocol properties

engine

db.engine: sa.engine.Engine

The default engine associated with the current application.