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

        :param engine: an engine created by``sqlalchemy.create_engine``.
        :param obj_or_data: single object or list of object
        """
        cls.update_all(
            engine=engine,
            obj_or_data=obj_or_data,
            upsert=True,
        )
def upsert_all ( cls , engine , obj_or_data ) : cls . update_all ( engine = engine , obj_or_data = obj_or_data , upsert = True , )
The :meth:`sqlalchemy.crud.updating.upsert_all` function in ORM syntax.

        :param engine: an engine created by``sqlalchemy.create_engine``.
        :param obj_or_data: single object or list of object