Skip to main content

utilities

ModuleSource

The extra functionalities used for hooking the original SQLAlchemy extensions. The extensions need to be hooked because some extra functionalities may need to be provided.

Classes

Member
Description
DBNotReadyErrorException raised by QueryGetter.
QueryGetterThe getter of the query property.
TableNameGetterThe getter of the __tablename__ property.

Functions

Member
Description
hook_classmethodHook a class method.
hook_base_modelAdd hooks to the given Model class.
apply_to_enginesApply a function to one or multiple engines.
clone_methodA decorator for modifying the static type hint of a method by cloning the signature of another method.
clone_functionA decorator for modifying the static type hint of a function by cloning the signature of another function.
get_app_ctx_idGet the ID of the current Flask app context object.