Changeset View
Changeset View
Standalone View
Standalone View
swh/storage/cassandra/model.py
Show First 20 Lines • Show All 326 Lines • ▼ Show 20 Lines | |||||
class ExtIDByTargetRow(BaseRow): | class ExtIDByTargetRow(BaseRow): | ||||
TABLE = "extid_by_target" | TABLE = "extid_by_target" | ||||
PARTITION_KEY = ("target_type", "target") | PARTITION_KEY = ("target_type", "target") | ||||
CLUSTERING_KEY = ("target_token",) | CLUSTERING_KEY = ("target_token",) | ||||
target_type: str | target_type: str | ||||
target: bytes | target: bytes | ||||
target_token: int | target_token: int | ||||
@dataclasses.dataclass | |||||
class ExtIDByTargetTypeVersionRow(BaseRow): | |||||
TABLE = "extid_by_target_type_version" | |||||
PARTITION_KEY = ("target_type", "target", "extid_type", "extid_version") | |||||
CLUSTERING_KEY = ("target_token",) | |||||
target_type: str | |||||
target: bytes | |||||
extid_type: str | |||||
extid_version: int | |||||
target_token: int |