query-cache-common 1.14.0__tar.gz → 1.16.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {query_cache_common-1.14.0 → query_cache_common-1.16.0}/PKG-INFO +1 -1
- query_cache_common-1.16.0/src/query_cache_common/models/services/state_selector_service_models.py +39 -0
- {query_cache_common-1.14.0 → query_cache_common-1.16.0}/src/query_cache_common/models/shared_models.py +1 -0
- {query_cache_common-1.14.0 → query_cache_common-1.16.0}/.gitignore +0 -0
- {query_cache_common-1.14.0 → query_cache_common-1.16.0}/pyproject.toml +0 -0
- {query_cache_common-1.14.0 → query_cache_common-1.16.0}/src/query_cache_common/__init__.py +0 -0
- {query_cache_common-1.14.0 → query_cache_common-1.16.0}/src/query_cache_common/auth.py +0 -0
- {query_cache_common-1.14.0 → query_cache_common-1.16.0}/src/query_cache_common/constants.py +0 -0
- {query_cache_common-1.14.0 → query_cache_common-1.16.0}/src/query_cache_common/decorators.py +0 -0
- {query_cache_common-1.14.0 → query_cache_common-1.16.0}/src/query_cache_common/models/__init__.py +0 -0
- {query_cache_common-1.14.0 → query_cache_common-1.16.0}/src/query_cache_common/models/_typing.py +0 -0
- {query_cache_common-1.14.0 → query_cache_common-1.16.0}/src/query_cache_common/models/base.py +0 -0
- {query_cache_common-1.14.0 → query_cache_common-1.16.0}/src/query_cache_common/models/converters.py +0 -0
- {query_cache_common-1.14.0 → query_cache_common-1.16.0}/src/query_cache_common/models/fields.py +0 -0
- {query_cache_common-1.14.0 → query_cache_common-1.16.0}/src/query_cache_common/models/services/__init__.py +0 -0
- {query_cache_common-1.14.0 → query_cache_common-1.16.0}/src/query_cache_common/models/services/client_telemetry_service_models.py +0 -0
- {query_cache_common-1.14.0 → query_cache_common-1.16.0}/src/query_cache_common/models/services/client_validation_service_models.py +0 -0
- {query_cache_common-1.14.0 → query_cache_common-1.16.0}/src/query_cache_common/models/services/clone_service_models.py +0 -0
- {query_cache_common-1.14.0 → query_cache_common-1.16.0}/src/query_cache_common/models/services/execution_service_models.py +0 -0
- {query_cache_common-1.14.0 → query_cache_common-1.16.0}/src/query_cache_common/models/services/explain_service_models.py +0 -0
- {query_cache_common-1.14.0 → query_cache_common-1.16.0}/src/query_cache_common/models/services/sql_service_models.py +0 -0
- {query_cache_common-1.14.0 → query_cache_common-1.16.0}/src/query_cache_common/utils.py +0 -0
query_cache_common-1.16.0/src/query_cache_common/models/services/state_selector_service_models.py
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
import typing as t
|
|
4
|
+
from query_cache_common.decorators import proto_dataclass, proto_enum
|
|
5
|
+
from query_cache_common.models import shared_models
|
|
6
|
+
from query_cache_common.models.base import BaseSerDeModel, BaseSerDeEnum
|
|
7
|
+
|
|
8
|
+
from query_cache_protobuf.query_cache.services import state_selector_service_pb2
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@proto_dataclass(state_selector_service_pb2.StateSelectorRequest)
|
|
12
|
+
class StateSelectorRequest(BaseSerDeModel):
|
|
13
|
+
target: str
|
|
14
|
+
nodes: t.List[shared_models.DbtNodeState]
|
|
15
|
+
selector_criteria: SelectorCriteria
|
|
16
|
+
project_id: t.Optional[str] = None
|
|
17
|
+
project_name: t.Optional[str] = None
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
@proto_enum(state_selector_service_pb2.SelectorCriteria)
|
|
21
|
+
class SelectorCriteria(BaseSerDeEnum):
|
|
22
|
+
MODIFIED = "MODIFIED"
|
|
23
|
+
NEW = "NEW"
|
|
24
|
+
UNMODIFIED = "UNMODIFIED"
|
|
25
|
+
OLD = "OLD"
|
|
26
|
+
BODY = "BODY"
|
|
27
|
+
CONFIGS = "CONFIGS"
|
|
28
|
+
RELATION = "RELATION"
|
|
29
|
+
PERSISTED_DESCRIPTIONS = "PERSISTED_DESCRIPTIONS"
|
|
30
|
+
MACROS = "MACROS"
|
|
31
|
+
CONTRACT = "CONTRACT"
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
@proto_dataclass(state_selector_service_pb2.StateSelectorResponse)
|
|
35
|
+
class StateSelectorResponse(BaseSerDeModel):
|
|
36
|
+
modified_ids: t.List[str]
|
|
37
|
+
new_ids: t.List[str]
|
|
38
|
+
unmodified_ids: t.List[str]
|
|
39
|
+
old_ids: t.List[str]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{query_cache_common-1.14.0 → query_cache_common-1.16.0}/src/query_cache_common/decorators.py
RENAMED
|
File without changes
|
{query_cache_common-1.14.0 → query_cache_common-1.16.0}/src/query_cache_common/models/__init__.py
RENAMED
|
File without changes
|
{query_cache_common-1.14.0 → query_cache_common-1.16.0}/src/query_cache_common/models/_typing.py
RENAMED
|
File without changes
|
{query_cache_common-1.14.0 → query_cache_common-1.16.0}/src/query_cache_common/models/base.py
RENAMED
|
File without changes
|
{query_cache_common-1.14.0 → query_cache_common-1.16.0}/src/query_cache_common/models/converters.py
RENAMED
|
File without changes
|
{query_cache_common-1.14.0 → query_cache_common-1.16.0}/src/query_cache_common/models/fields.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|