swh.journal.writer.inmemory module

class swh.journal.writer.inmemory.InMemoryJournalWriter(value_sanitizer: Callable[[str, Dict[str, Any]], Dict[str, Any]])[source]

Bases: Generic[swh.journal.writer.inmemory.TValue]

objects: List[Tuple[str, swh.journal.writer.inmemory.TValue]]
privileged_objects: List[Tuple[str, swh.journal.writer.inmemory.TValue]]
write_addition(object_type: str, object_: swh.journal.writer.inmemory.TValue, privileged: bool = False) None[source]
write_update(object_type: str, object_: swh.journal.writer.inmemory.TValue, privileged: bool = False) None
write_additions(object_type: str, objects: List[swh.journal.writer.inmemory.TValue], privileged: bool = False) None[source]