code: def upsert_all(cls, engine, obj_or_data):
          
          cls.update_all(
              engine=engine,
              obj_or_data=obj_or_data,
              upsert=True,
          )
docs: 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