Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /MTSWebServices_data-rentgen /data_rentgen /dto /sql_query.py
| # SPDX-FileCopyrightText: 2025-present MTS PJSC | |
| # SPDX-License-Identifier: Apache-2.0 | |
| from __future__ import annotations | |
| from dataclasses import dataclass, field | |
| from uuid import UUID | |
| from data_rentgen.utils.uuid import generate_static_uuid | |
| class SQLQueryDTO: | |
| query: str | |
| fingerprint: UUID = field(init=False) | |
| id: int | None = field(default=None, compare=False) | |
| def __post_init__(self): | |
| self.fingerprint = generate_static_uuid(self.query) | |
| def unique_key(self): | |
| return self.fingerprint | |
| def merge(self, new: SQLQueryDTO) -> SQLQueryDTO: | |
| self.id = new.id or self.id | |
| return self | |
Xet Storage Details
- Size:
- 674 Bytes
- Xet hash:
- d314fc60bd98b6731df91f36fd83e9e15dd9888cd18494b026ca8b2450a92783
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.