Skip to main content

backends

ModuleSource

The backends of the flask_sqlalchemy_compat package. These backends are modules conditionally loaded. In other words, if the module is intalled, will load the module. Otherwise, load a placeholder of the corresponding module.

The backends include:

  1. fsa: flask_sqlalchemy (licensed by BSD 3-Clause License, Copyright 2010 Pallets)
  2. fsa_lite: flask_sqlalchemy_lite (licensed by MIT License, Copyright 2024 Pallets)

Classes

Member
Description
ModulePlaceholderThe placeholder module.
BackendProxyA proxy class that is used for maintaining the dynamically loaded modules.

Instances

Member
Description
proxyThe proxy of internally used modules.

Functions

Member
Description
conditional_importImport the module if it exists. Otherwise, return a ModulePlaceholder.
is_module_invalidCheck whether the given module is invalid or not.