Changeset View
Changeset View
Standalone View
Standalone View
swh/indexer/storage/model.py
Show First 20 Lines • Show All 70 Lines • ▼ Show 20 Lines | class ContentMimetypeRow(BaseRow): | ||||
object_type: Final = "content_mimetype" | object_type: Final = "content_mimetype" | ||||
id = attr.ib(type=Sha1Git) | id = attr.ib(type=Sha1Git) | ||||
mimetype = attr.ib(type=str) | mimetype = attr.ib(type=str) | ||||
encoding = attr.ib(type=str) | encoding = attr.ib(type=str) | ||||
@attr.s | @attr.s | ||||
class ContentLanguageRow(BaseRow): | |||||
object_type: Final = "content_language" | |||||
id = attr.ib(type=Sha1Git) | |||||
lang = attr.ib(type=str) | |||||
@attr.s | |||||
class ContentLicenseRow(BaseRow): | class ContentLicenseRow(BaseRow): | ||||
object_type: Final = "content_fossology_license" | object_type: Final = "content_fossology_license" | ||||
UNIQUE_KEY_FIELDS = ("id", "indexer_configuration_id", "license") | UNIQUE_KEY_FIELDS = ("id", "indexer_configuration_id", "license") | ||||
id = attr.ib(type=Sha1Git) | id = attr.ib(type=Sha1Git) | ||||
license = attr.ib(type=str) | license = attr.ib(type=str) | ||||
Show All 37 Lines |