Changeset View
Changeset View
Standalone View
Standalone View
swh/storage/cassandra/model.py
Show First 20 Lines • Show All 274 Lines • ▼ Show 20 Lines | |||||
class ObjectCountRow(BaseRow): | class ObjectCountRow(BaseRow): | ||||
TABLE = "object_count" | TABLE = "object_count" | ||||
PARTITION_KEY = ("partition_key",) | PARTITION_KEY = ("partition_key",) | ||||
CLUSTERING_KEY = ("object_type",) | CLUSTERING_KEY = ("object_type",) | ||||
partition_key: int | partition_key: int | ||||
object_type: str | object_type: str | ||||
count: int | count: int | ||||
@dataclasses.dataclass | |||||
class ExtIDRow(BaseRow): | |||||
TABLE = "extid" | |||||
PARTITION_KEY = ("target", "target_type", "extid", "extid_type") | |||||
extid_type: str | |||||
extid: bytes | |||||
target_type: str | |||||
target: bytes |