flask_restful_dbbase.DBBase.make_declarative_base¶
- DBBase.make_declarative_base(model, metadata=None)¶
Creates the declarative base that all models will inherit from.
- Parameters:
model – base model class (or a tuple of base classes) to pass to
declarative_base()
. Or a class returned fromdeclarative_base
, in which case a new base class is not created.metadata –
MetaData
instance to use, or none to use SQLAlchemy’s default.