sqlmesh 0.198.1.dev14__py3-none-any.whl → 0.199.1.dev1__py3-none-any.whl
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.
- sqlmesh/_version.py +2 -2
- sqlmesh/core/config/root.py +2 -0
- sqlmesh/core/config/scheduler.py +1 -1
- sqlmesh/core/context.py +25 -2
- sqlmesh/core/loader.py +1 -1
- sqlmesh/core/model/schema.py +2 -3
- sqlmesh/core/selector.py +4 -1
- sqlmesh/core/state_sync/db/facade.py +3 -5
- sqlmesh/core/state_sync/db/snapshot.py +2 -3
- sqlmesh/dbt/loader.py +2 -3
- sqlmesh/dbt/manifest.py +10 -1
- sqlmesh/dbt/project.py +1 -0
- {sqlmesh-0.198.1.dev14.dist-info → sqlmesh-0.199.1.dev1.dist-info}/METADATA +1 -1
- {sqlmesh-0.198.1.dev14.dist-info → sqlmesh-0.199.1.dev1.dist-info}/RECORD +19 -19
- web/server/watcher.py +4 -1
- {sqlmesh-0.198.1.dev14.dist-info → sqlmesh-0.199.1.dev1.dist-info}/WHEEL +0 -0
- {sqlmesh-0.198.1.dev14.dist-info → sqlmesh-0.199.1.dev1.dist-info}/entry_points.txt +0 -0
- {sqlmesh-0.198.1.dev14.dist-info → sqlmesh-0.199.1.dev1.dist-info}/licenses/LICENSE +0 -0
- {sqlmesh-0.198.1.dev14.dist-info → sqlmesh-0.199.1.dev1.dist-info}/top_level.txt +0 -0
sqlmesh/_version.py
CHANGED
|
@@ -17,5 +17,5 @@ __version__: str
|
|
|
17
17
|
__version_tuple__: VERSION_TUPLE
|
|
18
18
|
version_tuple: VERSION_TUPLE
|
|
19
19
|
|
|
20
|
-
__version__ = version = '0.
|
|
21
|
-
__version_tuple__ = version_tuple = (0,
|
|
20
|
+
__version__ = version = '0.199.1.dev1'
|
|
21
|
+
__version_tuple__ = version_tuple = (0, 199, 1, 'dev1')
|
sqlmesh/core/config/root.py
CHANGED
|
@@ -120,6 +120,7 @@ class Config(BaseConfig):
|
|
|
120
120
|
disable_anonymized_analytics: Whether to disable the anonymized analytics collection.
|
|
121
121
|
before_all: SQL statements or macros to be executed at the start of the `sqlmesh plan` and `sqlmesh run` commands.
|
|
122
122
|
after_all: SQL statements or macros to be executed at the end of the `sqlmesh plan` and `sqlmesh run` commands.
|
|
123
|
+
cache_dir: The directory to store the SQLMesh cache. Defaults to .cache in the project folder.
|
|
123
124
|
"""
|
|
124
125
|
|
|
125
126
|
gateways: GatewayDict = {"": GatewayConfig()}
|
|
@@ -165,6 +166,7 @@ class Config(BaseConfig):
|
|
|
165
166
|
after_all: t.Optional[t.List[str]] = None
|
|
166
167
|
linter: LinterConfig = LinterConfig()
|
|
167
168
|
janitor: JanitorConfig = JanitorConfig()
|
|
169
|
+
cache_dir: t.Optional[str] = None
|
|
168
170
|
|
|
169
171
|
_FIELD_UPDATE_STRATEGY: t.ClassVar[t.Dict[str, UpdateStrategy]] = {
|
|
170
172
|
"gateways": UpdateStrategy.NESTED_UPDATE,
|
sqlmesh/core/config/scheduler.py
CHANGED
|
@@ -105,7 +105,7 @@ class _EngineAdapterStateSyncSchedulerConfig(SchedulerConfig):
|
|
|
105
105
|
|
|
106
106
|
schema = context.config.get_state_schema(context.gateway)
|
|
107
107
|
return EngineAdapterStateSync(
|
|
108
|
-
engine_adapter, schema=schema,
|
|
108
|
+
engine_adapter, schema=schema, cache_dir=context.cache_dir, console=context.console
|
|
109
109
|
)
|
|
110
110
|
|
|
111
111
|
def state_sync_fingerprint(self, context: GenericContext) -> str:
|
sqlmesh/core/context.py
CHANGED
|
@@ -504,7 +504,11 @@ class GenericContext(BaseContext, t.Generic[C]):
|
|
|
504
504
|
}
|
|
505
505
|
)
|
|
506
506
|
|
|
507
|
-
update_model_schemas(
|
|
507
|
+
update_model_schemas(
|
|
508
|
+
self.dag,
|
|
509
|
+
models=self._models,
|
|
510
|
+
cache_dir=self.cache_dir,
|
|
511
|
+
)
|
|
508
512
|
|
|
509
513
|
if model.dialect:
|
|
510
514
|
self._all_dialects.add(model.dialect)
|
|
@@ -640,7 +644,11 @@ class GenericContext(BaseContext, t.Generic[C]):
|
|
|
640
644
|
self._models.update({fqn: model.copy(update={"mapping_schema": {}})})
|
|
641
645
|
continue
|
|
642
646
|
|
|
643
|
-
update_model_schemas(
|
|
647
|
+
update_model_schemas(
|
|
648
|
+
self.dag,
|
|
649
|
+
models=self._models,
|
|
650
|
+
cache_dir=self.cache_dir,
|
|
651
|
+
)
|
|
644
652
|
|
|
645
653
|
models = self.models.values()
|
|
646
654
|
for model in models:
|
|
@@ -2439,6 +2447,9 @@ class GenericContext(BaseContext, t.Generic[C]):
|
|
|
2439
2447
|
cache_path = path / c.CACHE
|
|
2440
2448
|
if cache_path.exists():
|
|
2441
2449
|
rmtree(cache_path)
|
|
2450
|
+
if self.cache_dir.exists():
|
|
2451
|
+
rmtree(self.cache_dir)
|
|
2452
|
+
|
|
2442
2453
|
if isinstance(self.state_sync, CachingStateSync):
|
|
2443
2454
|
self.state_sync.clear_cache()
|
|
2444
2455
|
|
|
@@ -2538,6 +2549,17 @@ class GenericContext(BaseContext, t.Generic[C]):
|
|
|
2538
2549
|
for fqn, snapshot in self.snapshots.items()
|
|
2539
2550
|
}
|
|
2540
2551
|
|
|
2552
|
+
@cached_property
|
|
2553
|
+
def cache_dir(self) -> Path:
|
|
2554
|
+
if self.config.cache_dir:
|
|
2555
|
+
cache_path = Path(self.config.cache_dir)
|
|
2556
|
+
if cache_path.is_absolute():
|
|
2557
|
+
return cache_path
|
|
2558
|
+
return self.path / cache_path
|
|
2559
|
+
|
|
2560
|
+
# Default to .cache directory in the project path
|
|
2561
|
+
return self.path / c.CACHE
|
|
2562
|
+
|
|
2541
2563
|
@cached_property
|
|
2542
2564
|
def engine_adapters(self) -> t.Dict[str, EngineAdapter]:
|
|
2543
2565
|
"""Returns all the engine adapters for the gateways defined in the configuration."""
|
|
@@ -2735,6 +2757,7 @@ class GenericContext(BaseContext, t.Generic[C]):
|
|
|
2735
2757
|
dag=dag,
|
|
2736
2758
|
default_catalog=self.default_catalog,
|
|
2737
2759
|
dialect=self.default_dialect,
|
|
2760
|
+
cache_dir=self.cache_dir,
|
|
2738
2761
|
)
|
|
2739
2762
|
|
|
2740
2763
|
def _register_notification_targets(self) -> None:
|
sqlmesh/core/loader.py
CHANGED
|
@@ -887,7 +887,7 @@ class SqlMeshLoader(Loader):
|
|
|
887
887
|
def __init__(self, loader: SqlMeshLoader, config_path: Path):
|
|
888
888
|
self._loader = loader
|
|
889
889
|
self.config_path = config_path
|
|
890
|
-
self._model_cache = ModelCache(self.
|
|
890
|
+
self._model_cache = ModelCache(self._loader.context.cache_dir)
|
|
891
891
|
|
|
892
892
|
def get_or_load_models(
|
|
893
893
|
self, target_path: Path, loader: t.Callable[[], t.List[Model]]
|
sqlmesh/core/model/schema.py
CHANGED
|
@@ -7,7 +7,6 @@ from pathlib import Path
|
|
|
7
7
|
from sqlglot.errors import SchemaError
|
|
8
8
|
from sqlglot.schema import MappingSchema
|
|
9
9
|
|
|
10
|
-
from sqlmesh.core import constants as c
|
|
11
10
|
from sqlmesh.core.model.cache import (
|
|
12
11
|
load_optimized_query_and_mapping,
|
|
13
12
|
optimized_query_cache_pool,
|
|
@@ -23,10 +22,10 @@ if t.TYPE_CHECKING:
|
|
|
23
22
|
def update_model_schemas(
|
|
24
23
|
dag: DAG[str],
|
|
25
24
|
models: UniqueKeyDict[str, Model],
|
|
26
|
-
|
|
25
|
+
cache_dir: Path,
|
|
27
26
|
) -> None:
|
|
28
27
|
schema = MappingSchema(normalize=False)
|
|
29
|
-
optimized_query_cache: OptimizedQueryCache = OptimizedQueryCache(
|
|
28
|
+
optimized_query_cache: OptimizedQueryCache = OptimizedQueryCache(cache_dir)
|
|
30
29
|
|
|
31
30
|
_update_model_schemas(dag, models, schema, optimized_query_cache)
|
|
32
31
|
|
sqlmesh/core/selector.py
CHANGED
|
@@ -10,6 +10,7 @@ from sqlglot.tokens import Token, TokenType, Tokenizer as BaseTokenizer
|
|
|
10
10
|
from sqlglot.dialects.dialect import Dialect, DialectType
|
|
11
11
|
from sqlglot.helper import seq_get
|
|
12
12
|
|
|
13
|
+
from sqlmesh.core import constants as c
|
|
13
14
|
from sqlmesh.core.dialect import normalize_model_name
|
|
14
15
|
from sqlmesh.core.environment import Environment
|
|
15
16
|
from sqlmesh.core.model import update_model_schemas
|
|
@@ -34,10 +35,12 @@ class Selector:
|
|
|
34
35
|
dag: t.Optional[DAG[str]] = None,
|
|
35
36
|
default_catalog: t.Optional[str] = None,
|
|
36
37
|
dialect: t.Optional[str] = None,
|
|
38
|
+
cache_dir: t.Optional[Path] = None,
|
|
37
39
|
):
|
|
38
40
|
self._state_reader = state_reader
|
|
39
41
|
self._models = models
|
|
40
42
|
self._context_path = context_path
|
|
43
|
+
self._cache_dir = cache_dir if cache_dir else context_path / c.CACHE
|
|
41
44
|
self._default_catalog = default_catalog
|
|
42
45
|
self._dialect = dialect
|
|
43
46
|
self._git_client = GitClient(context_path)
|
|
@@ -157,7 +160,7 @@ class Selector:
|
|
|
157
160
|
models[model.fqn] = model
|
|
158
161
|
|
|
159
162
|
if needs_update:
|
|
160
|
-
update_model_schemas(dag, models=models,
|
|
163
|
+
update_model_schemas(dag, models=models, cache_dir=self._cache_dir)
|
|
161
164
|
|
|
162
165
|
return models
|
|
163
166
|
|
|
@@ -79,7 +79,7 @@ class EngineAdapterStateSync(StateSync):
|
|
|
79
79
|
engine_adapter: The EngineAdapter to use to store and fetch snapshots.
|
|
80
80
|
schema: The schema to store state metadata in. If None or empty string then no schema is defined
|
|
81
81
|
console: The console to log information to.
|
|
82
|
-
|
|
82
|
+
cache_dir: The cache path, used for caching snapshot models.
|
|
83
83
|
"""
|
|
84
84
|
|
|
85
85
|
def __init__(
|
|
@@ -87,14 +87,12 @@ class EngineAdapterStateSync(StateSync):
|
|
|
87
87
|
engine_adapter: EngineAdapter,
|
|
88
88
|
schema: t.Optional[str],
|
|
89
89
|
console: t.Optional[Console] = None,
|
|
90
|
-
|
|
90
|
+
cache_dir: Path = Path(),
|
|
91
91
|
):
|
|
92
92
|
self.plan_dags_table = exp.table_("_plan_dags", db=schema)
|
|
93
93
|
self.interval_state = IntervalState(engine_adapter, schema=schema)
|
|
94
94
|
self.environment_state = EnvironmentState(engine_adapter, schema=schema)
|
|
95
|
-
self.snapshot_state = SnapshotState(
|
|
96
|
-
engine_adapter, schema=schema, context_path=context_path
|
|
97
|
-
)
|
|
95
|
+
self.snapshot_state = SnapshotState(engine_adapter, schema=schema, cache_dir=cache_dir)
|
|
98
96
|
self.version_state = VersionState(engine_adapter, schema=schema)
|
|
99
97
|
self.migrator = StateMigrator(
|
|
100
98
|
engine_adapter,
|
|
@@ -8,7 +8,6 @@ from collections import defaultdict
|
|
|
8
8
|
from sqlglot import exp
|
|
9
9
|
from pydantic import Field
|
|
10
10
|
|
|
11
|
-
from sqlmesh.core import constants as c
|
|
12
11
|
from sqlmesh.core.engine_adapter import EngineAdapter
|
|
13
12
|
from sqlmesh.core.state_sync.db.utils import (
|
|
14
13
|
snapshot_name_version_filter,
|
|
@@ -53,7 +52,7 @@ class SnapshotState:
|
|
|
53
52
|
self,
|
|
54
53
|
engine_adapter: EngineAdapter,
|
|
55
54
|
schema: t.Optional[str] = None,
|
|
56
|
-
|
|
55
|
+
cache_dir: Path = Path(),
|
|
57
56
|
):
|
|
58
57
|
self.engine_adapter = engine_adapter
|
|
59
58
|
self.snapshots_table = exp.table_("_snapshots", db=schema)
|
|
@@ -79,7 +78,7 @@ class SnapshotState:
|
|
|
79
78
|
"next_auto_restatement_ts": exp.DataType.build("bigint"),
|
|
80
79
|
}
|
|
81
80
|
|
|
82
|
-
self._snapshot_cache = SnapshotCache(
|
|
81
|
+
self._snapshot_cache = SnapshotCache(cache_dir)
|
|
83
82
|
|
|
84
83
|
def push_snapshots(self, snapshots: t.Iterable[Snapshot], overwrite: bool = False) -> None:
|
|
85
84
|
"""Pushes snapshots to the state store.
|
sqlmesh/dbt/loader.py
CHANGED
|
@@ -5,7 +5,6 @@ import sys
|
|
|
5
5
|
import typing as t
|
|
6
6
|
import sqlmesh.core.dialect as d
|
|
7
7
|
from pathlib import Path
|
|
8
|
-
from sqlmesh.core import constants as c
|
|
9
8
|
from sqlmesh.core.config import (
|
|
10
9
|
Config,
|
|
11
10
|
ConnectionConfig,
|
|
@@ -330,8 +329,8 @@ class DbtLoader(Loader):
|
|
|
330
329
|
self._yaml_max_mtimes = yaml_max_mtimes
|
|
331
330
|
|
|
332
331
|
target = t.cast(TargetConfig, project.context.target)
|
|
333
|
-
|
|
334
|
-
self._model_cache = ModelCache(
|
|
332
|
+
cache_dir = loader.context.cache_dir / target.name
|
|
333
|
+
self._model_cache = ModelCache(cache_dir)
|
|
335
334
|
|
|
336
335
|
def get_or_load_models(
|
|
337
336
|
self, target_path: Path, loader: t.Callable[[], t.List[Model]]
|
sqlmesh/dbt/manifest.py
CHANGED
|
@@ -77,6 +77,7 @@ class ManifestHelper:
|
|
|
77
77
|
profile_name: str,
|
|
78
78
|
target: TargetConfig,
|
|
79
79
|
variable_overrides: t.Optional[t.Dict[str, t.Any]] = None,
|
|
80
|
+
cache_dir: t.Optional[str] = None,
|
|
80
81
|
):
|
|
81
82
|
self.project_path = project_path
|
|
82
83
|
self.profiles_path = profiles_path
|
|
@@ -99,8 +100,16 @@ class ManifestHelper:
|
|
|
99
100
|
self._tests_by_owner: t.Dict[str, t.List[TestConfig]] = defaultdict(list)
|
|
100
101
|
self._disabled_refs: t.Optional[t.Set[str]] = None
|
|
101
102
|
self._disabled_sources: t.Optional[t.Set[str]] = None
|
|
103
|
+
|
|
104
|
+
if cache_dir is not None:
|
|
105
|
+
cache_path = Path(cache_dir)
|
|
106
|
+
if not cache_path.is_absolute():
|
|
107
|
+
cache_path = self.project_path / cache_path
|
|
108
|
+
else:
|
|
109
|
+
cache_path = self.project_path / c.CACHE
|
|
110
|
+
|
|
102
111
|
self._call_cache: FileCache[t.Dict[str, t.List[CallNames]]] = FileCache(
|
|
103
|
-
|
|
112
|
+
cache_path, "jinja_calls"
|
|
104
113
|
)
|
|
105
114
|
|
|
106
115
|
self._on_run_start_per_package: t.Dict[str, HookConfigs] = defaultdict(dict)
|
sqlmesh/dbt/project.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
sqlmesh/__init__.py,sha256=QjwaamJIdW7voXoS880yAx7tHm-Im4_mqGA-XJgafos,7631
|
|
2
|
-
sqlmesh/_version.py,sha256=
|
|
2
|
+
sqlmesh/_version.py,sha256=zOqzr9tB5Ig4Cqi2rqDvOF1BHWDDqZBx5ng9PsPP81o,528
|
|
3
3
|
sqlmesh/magics.py,sha256=R9U0Mp9ZQhDYe751nxAQDLaMv3zLAR4HcTdIflKTmEE,41709
|
|
4
4
|
sqlmesh/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
sqlmesh/cicd/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -13,12 +13,12 @@ sqlmesh/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
13
13
|
sqlmesh/core/_typing.py,sha256=e1f7xO2aZCy38M_3VoDy-XI3shyd99-IFctgIFSgXWM,497
|
|
14
14
|
sqlmesh/core/console.py,sha256=HInr6MOcxgn8Z-B9fAoghoDXbBEZqkB5ClyZF-fRP58,159032
|
|
15
15
|
sqlmesh/core/constants.py,sha256=gUABXWYgH_XOSbaZAJsR5o1dmA61JDCvBDyxqqXX3LM,2630
|
|
16
|
-
sqlmesh/core/context.py,sha256=
|
|
16
|
+
sqlmesh/core/context.py,sha256=K9bQqk5ATZ0cl7v7qaiOQq-b7hYfPIgdo9G9v51Y6y8,119111
|
|
17
17
|
sqlmesh/core/context_diff.py,sha256=CeUmMBJzN__98YohrtAiIYPIZI9mrGBk6bVADWBLUw8,21692
|
|
18
18
|
sqlmesh/core/dialect.py,sha256=1ykYwb9WZn_nCaX08PcQ0BJh2Pihv9SPvoMNjpMeCfs,50158
|
|
19
19
|
sqlmesh/core/environment.py,sha256=7DbJX0r5nZRU3LhcgIxbSV-JosQYDjAt3V5Wc2Fpns8,13005
|
|
20
20
|
sqlmesh/core/lineage.py,sha256=zjB0Zfamo2Fja2r5SSZPMbrEKTXr1WjozZPVqvxdybI,3143
|
|
21
|
-
sqlmesh/core/loader.py,sha256=
|
|
21
|
+
sqlmesh/core/loader.py,sha256=Imb65SX5TtvQrtlilin2hkYg12gm9e9c30I8o95nkVE,40534
|
|
22
22
|
sqlmesh/core/macros.py,sha256=Me4QjgW_K4DzQVi8I3G0XwoC3cXSFFWt3sJyynZ2GOM,60585
|
|
23
23
|
sqlmesh/core/node.py,sha256=r4_1MRTPcU0MAlwZ5KzrykLT58B7dkKvHzPCsJmEKD8,14497
|
|
24
24
|
sqlmesh/core/notification_target.py,sha256=PPGoDrgbRKxr27vJEu03XqNTQLYTw0ZF_b0yAapxGeI,16158
|
|
@@ -27,7 +27,7 @@ sqlmesh/core/renderer.py,sha256=ksdD2x2Q5Ns5fOLIGfWIznx_T3fXbP3CfwUhD5kVSOQ,2667
|
|
|
27
27
|
sqlmesh/core/scheduler.py,sha256=lA3zhpz52HV-QBGoPirtqd2KakivnTuqiqZp09pP8js,39318
|
|
28
28
|
sqlmesh/core/schema_diff.py,sha256=Sp2MoqAngp-yTYevkLaf9jb26SuAdGXoZ54g5MjWowU,30516
|
|
29
29
|
sqlmesh/core/schema_loader.py,sha256=lvrI9k7hr1P4X4E6t3U-KrcuvdQuw0UdNlN90P2s52w,3563
|
|
30
|
-
sqlmesh/core/selector.py,sha256=
|
|
30
|
+
sqlmesh/core/selector.py,sha256=CBuCbaFzidinaoS66o4MY9F-1C3k9YddNMyUv-5Z2i8,12815
|
|
31
31
|
sqlmesh/core/signal.py,sha256=yVLXewYP6eH0vt-EwaIaI2WwHz6hWsVr-Kb2m4kP1FU,1353
|
|
32
32
|
sqlmesh/core/table_diff.py,sha256=_LhSwAhCctkqWini0n-qeIK-cOPeuGnwlLSuUNM8n2k,29062
|
|
33
33
|
sqlmesh/core/user.py,sha256=EJ6R4R1iK67n80vBoCCsidF56IR7xEYqiCEO-nrVMso,1660
|
|
@@ -52,9 +52,9 @@ sqlmesh/core/config/migration.py,sha256=3lZIlmIcQH3_hIEm3Y3jFtvpw0YXzRzAnk4Odikl
|
|
|
52
52
|
sqlmesh/core/config/model.py,sha256=GIz9kAfKD2NEXNzCZCQ17-CK2OtqN6WgeG1fvibcChM,3650
|
|
53
53
|
sqlmesh/core/config/naming.py,sha256=KVGaxUgswoQajXR_cHFJvgkmEFcU1V182GkOH1SJxuE,326
|
|
54
54
|
sqlmesh/core/config/plan.py,sha256=wJEDfocMcKSMN0-5gVojjIcmJZ0376LJU3tkGMTm-Zc,1558
|
|
55
|
-
sqlmesh/core/config/root.py,sha256=
|
|
55
|
+
sqlmesh/core/config/root.py,sha256=CutuHcOqF1trDiz1VckikMvvaqafcyU8iil11H-w8rk,15670
|
|
56
56
|
sqlmesh/core/config/run.py,sha256=rIK0QnN_vArrwps2TXGVEbvao2AnGZgzXo7EliJa42E,852
|
|
57
|
-
sqlmesh/core/config/scheduler.py,sha256=
|
|
57
|
+
sqlmesh/core/config/scheduler.py,sha256=LVEHIln7dqv8ygo4uniji4j9-gfuJlk-WpQU9FAqILs,7031
|
|
58
58
|
sqlmesh/core/config/ui.py,sha256=jsO-S6_d9NkLZGG5pT4mgKgxMF34KzkDociZAMvCX3U,278
|
|
59
59
|
sqlmesh/core/engine_adapter/__init__.py,sha256=two_WTs4UnSNp-fscJh8vOunJq0Xi37EuDuMjKsKuNE,2281
|
|
60
60
|
sqlmesh/core/engine_adapter/_typing.py,sha256=_63pYCThfC39UtPVHY3N0H6qJ1YBT32OqwwR3swolGM,1037
|
|
@@ -91,7 +91,7 @@ sqlmesh/core/model/decorator.py,sha256=wUUg5t0K559tV9Pqt6FE2EWXt5TPGb4wF2Yg4B4hX
|
|
|
91
91
|
sqlmesh/core/model/definition.py,sha256=mG6UPwxiZj0xP_cdHSVELEcXusAcltpgHBX-wiUSuPM,111963
|
|
92
92
|
sqlmesh/core/model/kind.py,sha256=8Dp8yiTiXltboZWrB2FJ-LQ3zx4Fv_5Tj0KdUIPwCHI,36358
|
|
93
93
|
sqlmesh/core/model/meta.py,sha256=D9InI9M2-IXeb34vkXNQSLALL8xVXjZ_LXwI-Tqxm7I,21197
|
|
94
|
-
sqlmesh/core/model/schema.py,sha256=
|
|
94
|
+
sqlmesh/core/model/schema.py,sha256=_HMYfzK9wWXh7_CQDIIGnuQUD4aiX3o5D2cRp2sERzc,3387
|
|
95
95
|
sqlmesh/core/model/seed.py,sha256=a0M-1zY1gOkN5ph2GQyataEdBSCtq50YjeFk2LyvInI,5058
|
|
96
96
|
sqlmesh/core/plan/__init__.py,sha256=NKSvM7ZBVjw9ho3J65M1wFvG3KURB8PJ0FHHLmtSF44,443
|
|
97
97
|
sqlmesh/core/plan/builder.py,sha256=g07h-NOsOr_4spnOrlQ4KrFjh3RmbvHSydEuSOsShNc,41416
|
|
@@ -111,10 +111,10 @@ sqlmesh/core/state_sync/common.py,sha256=x8Nkox6VmkD-lYZkjRcNe3iVsChR1HBroTorf1k
|
|
|
111
111
|
sqlmesh/core/state_sync/export_import.py,sha256=WJ7sFX2b_RPAFE4yspJRi_4JQnaO23xpJgRxwXD0agA,8709
|
|
112
112
|
sqlmesh/core/state_sync/db/__init__.py,sha256=jGCqKYB7npq4eh6H2LyfBAJWdOP-IFu0DC4CMiQgYvw,107
|
|
113
113
|
sqlmesh/core/state_sync/db/environment.py,sha256=iTxrdNlKB36S54PUdlqEqlxiAZJtKNExHBtsIbaXT30,13675
|
|
114
|
-
sqlmesh/core/state_sync/db/facade.py,sha256=
|
|
114
|
+
sqlmesh/core/state_sync/db/facade.py,sha256=WWditN46A9DXHDcHT7kUZaCfkkjcaDfMC9qO1EfH4Og,25266
|
|
115
115
|
sqlmesh/core/state_sync/db/interval.py,sha256=qDo5qX7vulibbg9M8mDA0PjoQQJlUCouBJeWuTuLJ6Y,18043
|
|
116
116
|
sqlmesh/core/state_sync/db/migrator.py,sha256=2LNUwOBNFkA1ntp-Z93S_OWxFQhOBj3ZD_ZqPCyPEAE,18139
|
|
117
|
-
sqlmesh/core/state_sync/db/snapshot.py,sha256=
|
|
117
|
+
sqlmesh/core/state_sync/db/snapshot.py,sha256=LV5w3hvwxa-v_ilC1iuQb4iAJDNoi9DH1aNb5RzdSps,29424
|
|
118
118
|
sqlmesh/core/state_sync/db/utils.py,sha256=204OpT3ISFPCwWP9Aqq8nr6ETl24sbG5uOyo86IJv6E,3819
|
|
119
119
|
sqlmesh/core/state_sync/db/version.py,sha256=fl5g1tNMYu8O6WTN4J3bciwjGq0c5nZlRDlxxRKGU78,2210
|
|
120
120
|
sqlmesh/core/test/__init__.py,sha256=e83TJPwPRR_rAG29Y0OVbZb-5oWVBzz-_wrcd22Qk10,418
|
|
@@ -130,12 +130,12 @@ sqlmesh/dbt/builtin.py,sha256=p4E1rmSLM0B5PHcFWA9J7FwScR90pIPqiMN8G4M3sBM,15173
|
|
|
130
130
|
sqlmesh/dbt/column.py,sha256=Kvj_N3D_QegcoNQG7VqRiqy-FRfupud-6ilhlykBOgE,1873
|
|
131
131
|
sqlmesh/dbt/common.py,sha256=g4PAL-sEdlnfb_zT-WW3xh-oamyCUoK8dUiDEMVwDWI,7804
|
|
132
132
|
sqlmesh/dbt/context.py,sha256=dxClM-G1IeMbP0v5yxC_va8QNU-uKghW2dBlSZHJOk0,10331
|
|
133
|
-
sqlmesh/dbt/loader.py,sha256=
|
|
134
|
-
sqlmesh/dbt/manifest.py,sha256=
|
|
133
|
+
sqlmesh/dbt/loader.py,sha256=K5UW1RvkOi1uK9vdhAYBi80XmwlAaBwZXflH3P36hXE,15530
|
|
134
|
+
sqlmesh/dbt/manifest.py,sha256=jlafUYdoG7gS2pzvJrt9JfC2afbAMORhBbBUaLl-ZTM,24894
|
|
135
135
|
sqlmesh/dbt/model.py,sha256=FgQpl8pUNOnihGUo5PYdqOqqOX3XtfDHX3xEJc-CVC4,25782
|
|
136
136
|
sqlmesh/dbt/package.py,sha256=IBBQueVB4_4C9tIk0-GUL-O2uibNxXu6W2a4AeHHcOU,4322
|
|
137
137
|
sqlmesh/dbt/profile.py,sha256=Fz2c0dJNN0xBgYEogCIKBTByjNvlA2BVBzOLQCfdEfM,3788
|
|
138
|
-
sqlmesh/dbt/project.py,sha256=
|
|
138
|
+
sqlmesh/dbt/project.py,sha256=a21czHhdcm2J80Zllj2q6VvH-W_rDtlXHa8wmvHaLTo,4036
|
|
139
139
|
sqlmesh/dbt/relation.py,sha256=rgDJQUuENjqq7kpMJJ6AdlgwYmcYjA1oFj6LCYCS-Hg,227
|
|
140
140
|
sqlmesh/dbt/seed.py,sha256=E7pFhtGwRrC9U_VZJNABwLTa-Nk4OeD-gOtjSpvYmDA,4251
|
|
141
141
|
sqlmesh/dbt/source.py,sha256=IZK-aOV-KdWIOPuXqRjJZAZ7phW1HUXoHtE-3clgkx4,4125
|
|
@@ -284,7 +284,7 @@ sqlmesh/utils/pydantic.py,sha256=o_NsXbIpDqNpUA1Uc5xF0ZzoXQYYB0DfHwdRxBwXPNk,120
|
|
|
284
284
|
sqlmesh/utils/rich.py,sha256=BpB47G0-JcU41LkGkeGKroexj4NOV5fox4-GOIXPgIc,3545
|
|
285
285
|
sqlmesh/utils/windows.py,sha256=r7Yin4WEwbvH7sKA3hOJtRsclmscNuBeCklCfVPvtQs,611
|
|
286
286
|
sqlmesh/utils/yaml.py,sha256=hvo5lmybYLcIx4p6CQwufS8X4MbwS60lEBnCmYJCXmU,2336
|
|
287
|
-
sqlmesh-0.
|
|
287
|
+
sqlmesh-0.199.1.dev1.dist-info/licenses/LICENSE,sha256=OlMefUjgWJdULtf84BLW0AZZcY8DwdgQqb_1j2862j8,11346
|
|
288
288
|
web/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
289
289
|
web/client/dist/index.html,sha256=kNpFjWxt34Pf-P-cROtPWi3GNSVk6zqA3eoN9tlZXI0,5472
|
|
290
290
|
web/client/dist/assets/Audits-DKgXravk.js,sha256=SaVQhNlislD_yQc_KivO7SPi1JH0ts1GnDPD5Zssutw,1041
|
|
@@ -388,7 +388,7 @@ web/server/models.py,sha256=NUI2xqDcav20uuC2BZ9xDL2x0v16-gpVT1Sb-WHfAcg,15518
|
|
|
388
388
|
web/server/openapi.py,sha256=NOg__YQg7arVdajQv5CvOA5KLTQCfGZFvwnjARuM6iE,586
|
|
389
389
|
web/server/settings.py,sha256=PuWrOmn5LpJMBTymCMQreqMsL93tClTJ6wlcAZXjgCo,3755
|
|
390
390
|
web/server/utils.py,sha256=bb6AOM3Nga-zihPjZvJeDL6sHqTPNC_SYjklsy8tAQA,4013
|
|
391
|
-
web/server/watcher.py,sha256=
|
|
391
|
+
web/server/watcher.py,sha256=2c08EfXkgAfqpAEoFidkYjGH48DkLDyMueVp4afICHM,5334
|
|
392
392
|
web/server/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
393
393
|
web/server/api/endpoints/__init__.py,sha256=FcXl56-kPqbKgCZKOx0kjE50hn37q1m-nwOCxI9tRcc,932
|
|
394
394
|
web/server/api/endpoints/commands.py,sha256=Fj7FUxOuageasij_7-dVvOlJMsBnRmFBWYk_-t91UQI,8242
|
|
@@ -402,8 +402,8 @@ web/server/api/endpoints/models.py,sha256=ud-lRwriyI_OYg9tZchrBgeiXELiRTLNEodraf
|
|
|
402
402
|
web/server/api/endpoints/modules.py,sha256=8hqqgonGay_mJmpCw0IdbjsPhWlQH2VLdKAqha-myac,468
|
|
403
403
|
web/server/api/endpoints/plan.py,sha256=bbbY50W_2MsZSTxOHWMKz0tbIm75nsRSlPy8GI2fg9Q,9306
|
|
404
404
|
web/server/api/endpoints/table_diff.py,sha256=SCy3-pr5x6bEEiOaZGCDbiHQhpgxwmnz3Acqa2Ie6jI,2090
|
|
405
|
-
sqlmesh-0.
|
|
406
|
-
sqlmesh-0.
|
|
407
|
-
sqlmesh-0.
|
|
408
|
-
sqlmesh-0.
|
|
409
|
-
sqlmesh-0.
|
|
405
|
+
sqlmesh-0.199.1.dev1.dist-info/METADATA,sha256=J9wTKr23lqz22qxIQ2oQZga5pQJ7auPT1rBlGN0qFxY,26658
|
|
406
|
+
sqlmesh-0.199.1.dev1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
407
|
+
sqlmesh-0.199.1.dev1.dist-info/entry_points.txt,sha256=pIYKtg-u-uO7BK_Y0qrdmfyj0bYrcMc3Xiqr5WE3VFk,121
|
|
408
|
+
sqlmesh-0.199.1.dev1.dist-info/top_level.txt,sha256=bspjo5vjELQkuN0qKuTFIbsrUt3Zeo8D2mlKeHG1LdE,12
|
|
409
|
+
sqlmesh-0.199.1.dev1.dist-info/RECORD,,
|
web/server/watcher.py
CHANGED
|
@@ -30,7 +30,10 @@ async def watch_project() -> None:
|
|
|
30
30
|
(settings.project_path / c.SEEDS).resolve(),
|
|
31
31
|
]
|
|
32
32
|
ignore_dirs = [".env"]
|
|
33
|
-
|
|
33
|
+
cache_path = (
|
|
34
|
+
context.cache_dir.resolve() if context else (settings.project_path / c.CACHE).resolve()
|
|
35
|
+
)
|
|
36
|
+
ignore_paths: t.List[t.Union[str, Path]] = [cache_path]
|
|
34
37
|
ignore_entity_patterns = context.config.ignore_patterns if context else c.IGNORE_PATTERNS
|
|
35
38
|
ignore_entity_patterns.append("^.*\\.db(\\.wal)?$")
|
|
36
39
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|