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 from declarative_base, in which case a new base class is not created.

  • metadataMetaData instance to use, or none to use SQLAlchemy’s default.