Changeset View
Changeset View
Standalone View
Standalone View
swh/storage/backfill.py
Show All 13 Lines | |||||
the journal. | the journal. | ||||
""" | """ | ||||
import logging | import logging | ||||
from typing import Any, Callable, Dict, Optional | from typing import Any, Callable, Dict, Optional | ||||
from swh.core.db import BaseDb | from swh.core.db import BaseDb | ||||
from swh.model.identifiers import ExtendedObjectType | |||||
from swh.model.model import ( | from swh.model.model import ( | ||||
BaseModel, | BaseModel, | ||||
Directory, | Directory, | ||||
DirectoryEntry, | DirectoryEntry, | ||||
ExtID, | ExtID, | ||||
RawExtrinsicMetadata, | RawExtrinsicMetadata, | ||||
Release, | Release, | ||||
Revision, | Revision, | ||||
Snapshot, | Snapshot, | ||||
SnapshotBranch, | SnapshotBranch, | ||||
TargetType, | TargetType, | ||||
) | ) | ||||
from swh.model.swhids import ExtendedObjectType | |||||
from swh.storage.postgresql.converters import ( | from swh.storage.postgresql.converters import ( | ||||
db_to_extid, | db_to_extid, | ||||
db_to_raw_extrinsic_metadata, | db_to_raw_extrinsic_metadata, | ||||
db_to_release, | db_to_release, | ||||
db_to_revision, | db_to_revision, | ||||
) | ) | ||||
from swh.storage.replay import object_converter_fn | from swh.storage.replay import object_converter_fn | ||||
from swh.storage.writer import JournalWriter | from swh.storage.writer import JournalWriter | ||||
▲ Show 20 Lines • Show All 616 Lines • Show Last 20 Lines |