Changeset View
Changeset View
Standalone View
Standalone View
swh/journal/writer/interface.py
Show All 32 Lines | def write_additions( | ||||
self, object_type: str, objects: Iterable[ValueProtocol] | self, object_type: str, objects: Iterable[ValueProtocol] | ||||
) -> None: | ) -> None: | ||||
"""Add a list of SWH objects of type object_type in the journal.""" | """Add a list of SWH objects of type object_type in the journal.""" | ||||
... | ... | ||||
def flush(self) -> None: | def flush(self) -> None: | ||||
"""Flush the pending object additions in the backend, if any.""" | """Flush the pending object additions in the backend, if any.""" | ||||
... | ... | ||||
def delete(self, object_type: str, object_keys: Iterable[KeyType]) -> None: | |||||
"""Delete the object with keys `object_keys`.""" | |||||
... |