Changeset View
Changeset View
Standalone View
Standalone View
swh/storage/cassandra/model.py
Show First 20 Lines • Show All 240 Lines • ▼ Show 20 Lines | |||||
@dataclasses.dataclass | @dataclasses.dataclass | ||||
class RawExtrinsicMetadataRow(BaseRow): | class RawExtrinsicMetadataRow(BaseRow): | ||||
TABLE = "raw_extrinsic_metadata" | TABLE = "raw_extrinsic_metadata" | ||||
PARTITION_KEY = ("target",) | PARTITION_KEY = ("target",) | ||||
CLUSTERING_KEY = ( | CLUSTERING_KEY = ( | ||||
"authority_type", | "authority_type", | ||||
"authority_url", | "authority_url", | ||||
"discovery_date", | "discovery_date", | ||||
"fetcher_name", | "id", | ||||
"fetcher_version", | |||||
) | ) | ||||
id: bytes | |||||
type: str | type: str | ||||
target: str | target: str | ||||
authority_type: str | authority_type: str | ||||
authority_url: str | authority_url: str | ||||
discovery_date: datetime.datetime | discovery_date: datetime.datetime | ||||
fetcher_name: str | fetcher_name: str | ||||
fetcher_version: str | fetcher_version: str | ||||
Show All 33 Lines |