Changeset View
Changeset View
Standalone View
Standalone View
swh/indexer/storage/db.py
Show All 10 Lines | |||||
from .interface import Sha1 | from .interface import Sha1 | ||||
class Db(BaseDb): | class Db(BaseDb): | ||||
"""Proxy to the SWH Indexer DB, with wrappers around stored procedures""" | """Proxy to the SWH Indexer DB, with wrappers around stored procedures""" | ||||
content_mimetype_hash_keys = ["id", "indexer_configuration_id"] | content_mimetype_hash_keys = ["id", "indexer_configuration_id"] | ||||
current_version = 133 | |||||
def _missing_from_list( | def _missing_from_list( | ||||
self, table: str, data: Iterable[Dict], hash_keys: List[str], cur=None | self, table: str, data: Iterable[Dict], hash_keys: List[str], cur=None | ||||
): | ): | ||||
"""Read from table the data with hash_keys that are missing. | """Read from table the data with hash_keys that are missing. | ||||
Args: | Args: | ||||
table: Table name (e.g content_mimetype, content_language, | table: Table name (e.g content_mimetype, content_language, | ||||
▲ Show 20 Lines • Show All 508 Lines • Show Last 20 Lines |