@classmethod
def upsert_all(cls, engine, obj_or_data):
    """
        The :meth:`sqlalchemy.crud.updating.upsert_all` function in ORM syntax.

        :type engine: Engine
        :param engine: an engine created by``sqlalchemy.create_engine``.

        :type obj_or_data: Union[ExtendedBase, List[ExtendedBase]]
        :param obj_or_data: single object or list of object
        """
    cls.update_all(engine=engine, obj_or_data=obj_or_data, upsert=True)
