@classmethod<EOL><INDENT>def update_all(cls, engine, obj_or_data, upsert=False):<DEDENT>
obj_or_data = ensure_list(obj_or_data)<EOL>update_all(<EOL>engine=engine,<EOL>table=cls.__table__,<EOL>data=[obj.to_dict(include_null=False) for obj in obj_or_data],<EOL>upsert=upsert,<EOL>)<EOL>
The :meth:`sqlalchemy.crud.updating.update_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

:type upsert: bool
:param upsert: if True, then do insert also.