sqlmesh 0.188.2.dev16__py3-none-any.whl → 0.188.2.dev17__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/context.py +10 -24
- {sqlmesh-0.188.2.dev16.dist-info → sqlmesh-0.188.2.dev17.dist-info}/METADATA +1 -1
- {sqlmesh-0.188.2.dev16.dist-info → sqlmesh-0.188.2.dev17.dist-info}/RECORD +8 -8
- {sqlmesh-0.188.2.dev16.dist-info → sqlmesh-0.188.2.dev17.dist-info}/WHEEL +0 -0
- {sqlmesh-0.188.2.dev16.dist-info → sqlmesh-0.188.2.dev17.dist-info}/entry_points.txt +0 -0
- {sqlmesh-0.188.2.dev16.dist-info → sqlmesh-0.188.2.dev17.dist-info}/licenses/LICENSE +0 -0
- {sqlmesh-0.188.2.dev16.dist-info → sqlmesh-0.188.2.dev17.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.188.2.
|
|
21
|
-
__version_tuple__ = version_tuple = (0, 188, 2, '
|
|
20
|
+
__version__ = version = '0.188.2.dev17'
|
|
21
|
+
__version_tuple__ = version_tuple = (0, 188, 2, 'dev17')
|
sqlmesh/core/context.py
CHANGED
|
@@ -367,11 +367,7 @@ class GenericContext(BaseContext, t.Generic[C]):
|
|
|
367
367
|
self._requirements: t.Dict[str, str] = {}
|
|
368
368
|
self._environment_statements: t.List[EnvironmentStatements] = []
|
|
369
369
|
self._excluded_requirements: t.Set[str] = set()
|
|
370
|
-
self._default_catalog: t.Optional[str] = None
|
|
371
|
-
self._default_catalog_per_gateway: t.Optional[t.Dict[str, str]] = None
|
|
372
370
|
self._engine_adapter: t.Optional[EngineAdapter] = None
|
|
373
|
-
self._connection_config: t.Optional[ConnectionConfig] = None
|
|
374
|
-
self._test_connection_config: t.Optional[ConnectionConfig] = None
|
|
375
371
|
self._linters: t.Dict[str, Linter] = {}
|
|
376
372
|
self._loaded: bool = False
|
|
377
373
|
|
|
@@ -967,11 +963,9 @@ class GenericContext(BaseContext, t.Generic[C]):
|
|
|
967
963
|
"""Returns the Python dependencies of the project loaded in this context."""
|
|
968
964
|
return self._requirements.copy()
|
|
969
965
|
|
|
970
|
-
@
|
|
966
|
+
@cached_property
|
|
971
967
|
def default_catalog(self) -> t.Optional[str]:
|
|
972
|
-
|
|
973
|
-
self._default_catalog = self.default_catalog_per_gateway[self.selected_gateway]
|
|
974
|
-
return self._default_catalog
|
|
968
|
+
return self.default_catalog_per_gateway.get(self.selected_gateway)
|
|
975
969
|
|
|
976
970
|
@python_api_analytics
|
|
977
971
|
def render(
|
|
@@ -2516,13 +2510,9 @@ class GenericContext(BaseContext, t.Generic[C]):
|
|
|
2516
2510
|
@cached_property
|
|
2517
2511
|
def default_catalog_per_gateway(self) -> t.Dict[str, str]:
|
|
2518
2512
|
"""Returns the default catalogs for each engine adapter."""
|
|
2519
|
-
|
|
2520
|
-
self._default_catalog_per_gateway = self._scheduler.get_default_catalog_per_gateway(
|
|
2521
|
-
self
|
|
2522
|
-
)
|
|
2523
|
-
return self._default_catalog_per_gateway
|
|
2513
|
+
return self._scheduler.get_default_catalog_per_gateway(self)
|
|
2524
2514
|
|
|
2525
|
-
@
|
|
2515
|
+
@property
|
|
2526
2516
|
def concurrent_tasks(self) -> int:
|
|
2527
2517
|
if self._concurrent_tasks is None:
|
|
2528
2518
|
self._concurrent_tasks = self.connection_config.concurrent_tasks
|
|
@@ -2530,19 +2520,15 @@ class GenericContext(BaseContext, t.Generic[C]):
|
|
|
2530
2520
|
|
|
2531
2521
|
@cached_property
|
|
2532
2522
|
def connection_config(self) -> ConnectionConfig:
|
|
2533
|
-
|
|
2534
|
-
self._connection_config = self.config.get_connection(self.selected_gateway)
|
|
2535
|
-
return self._connection_config
|
|
2523
|
+
return self.config.get_connection(self.selected_gateway)
|
|
2536
2524
|
|
|
2537
2525
|
@cached_property
|
|
2538
2526
|
def test_connection_config(self) -> ConnectionConfig:
|
|
2539
|
-
|
|
2540
|
-
self.
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
)
|
|
2545
|
-
return self._test_connection_config
|
|
2527
|
+
return self.config.get_test_connection(
|
|
2528
|
+
self.gateway,
|
|
2529
|
+
self.default_catalog,
|
|
2530
|
+
default_catalog_dialect=self.config.dialect,
|
|
2531
|
+
)
|
|
2546
2532
|
|
|
2547
2533
|
@cached_property
|
|
2548
2534
|
def environment_catalog_mapping(self) -> RegexKeyDict:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
sqlmesh/__init__.py,sha256=69xw6bTmi4cW90M-sl3g6wLDgxVcLHcKg1q8GS3lqyA,7466
|
|
2
|
-
sqlmesh/_version.py,sha256=
|
|
2
|
+
sqlmesh/_version.py,sha256=o3Xv8-56EqAMZYtqoXhQ_0nsd22DHrw6gQTujP_RJjA,530
|
|
3
3
|
sqlmesh/magics.py,sha256=fu7-OeT_0_TAkWZOLoiioE3-3iFpvTRxFCbQUlRnfuw,39944
|
|
4
4
|
sqlmesh/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
sqlmesh/cicd/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -13,7 +13,7 @@ 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=ZAaGLOWBJGBxPzLV7KZZ9akPExgD5m5AboCM8O0Q0nY,150944
|
|
15
15
|
sqlmesh/core/constants.py,sha256=oqt6zjepUhQoWlgapKn_HpG7Pu9mrFwepdX5caNfJUI,2499
|
|
16
|
-
sqlmesh/core/context.py,sha256=
|
|
16
|
+
sqlmesh/core/context.py,sha256=4aYjGhzKagWG3wx6CbDGsljcrtOd8bRjeEjs6mW2SuQ,116359
|
|
17
17
|
sqlmesh/core/context_diff.py,sha256=I7luvY2za30E5ynVaFPaEQQEmNViJpWAmW48PGSyDCU,21135
|
|
18
18
|
sqlmesh/core/dialect.py,sha256=fPTV517IOS0nWMxYznNNQnXkQkFFrPOSKe8ghsQ0o8A,49759
|
|
19
19
|
sqlmesh/core/environment.py,sha256=Fsih6WZ7Tx4ec0XIlmIIspUWcmijPNW5uHPRQSWuhA8,12315
|
|
@@ -270,7 +270,7 @@ sqlmesh/utils/pydantic.py,sha256=I898jAFqa3qU6lG2uPpRebVFncOUo8ZrLWM_R3K3DHU,116
|
|
|
270
270
|
sqlmesh/utils/rich.py,sha256=xNZyPCqEc4TAlJlsEthg-5eYUWpaizz0QjBzO7a1Yv4,1509
|
|
271
271
|
sqlmesh/utils/windows.py,sha256=r7Yin4WEwbvH7sKA3hOJtRsclmscNuBeCklCfVPvtQs,611
|
|
272
272
|
sqlmesh/utils/yaml.py,sha256=np-WVcwmwsKghCgAj1OBBMsK1SXSRn4wR-H37cGiFr8,2282
|
|
273
|
-
sqlmesh-0.188.2.
|
|
273
|
+
sqlmesh-0.188.2.dev17.dist-info/licenses/LICENSE,sha256=OlMefUjgWJdULtf84BLW0AZZcY8DwdgQqb_1j2862j8,11346
|
|
274
274
|
web/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
275
275
|
web/client/dist/index.html,sha256=U9DgO3KqjoSuGiKVKR8AAdfXFUa0kaXJgIRAsmZ5RH8,5472
|
|
276
276
|
web/client/dist/assets/Audits-CNkn30Bu.js,sha256=0uC1ibXDFzBjPRshILFo9VzNNKHT3nvIgQhrhVDG-1Y,1041
|
|
@@ -388,8 +388,8 @@ web/server/api/endpoints/models.py,sha256=ud-lRwriyI_OYg9tZchrBgeiXELiRTLNEodraf
|
|
|
388
388
|
web/server/api/endpoints/modules.py,sha256=8hqqgonGay_mJmpCw0IdbjsPhWlQH2VLdKAqha-myac,468
|
|
389
389
|
web/server/api/endpoints/plan.py,sha256=OYuQ_4dgbhG9ibTcX1a8mvYgH3ANxw9Fhbb4wg6QWqc,9222
|
|
390
390
|
web/server/api/endpoints/table_diff.py,sha256=Wd5YxeKbZB7AkrDvqFgvV9ZQlnKYOF1n5W_w2EHE_Zw,2085
|
|
391
|
-
sqlmesh-0.188.2.
|
|
392
|
-
sqlmesh-0.188.2.
|
|
393
|
-
sqlmesh-0.188.2.
|
|
394
|
-
sqlmesh-0.188.2.
|
|
395
|
-
sqlmesh-0.188.2.
|
|
391
|
+
sqlmesh-0.188.2.dev17.dist-info/METADATA,sha256=oq-INBz5zLbzj0F0JfxOPr__DEZCIfWwuiXjVjV0Fbc,26532
|
|
392
|
+
sqlmesh-0.188.2.dev17.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
393
|
+
sqlmesh-0.188.2.dev17.dist-info/entry_points.txt,sha256=pIYKtg-u-uO7BK_Y0qrdmfyj0bYrcMc3Xiqr5WE3VFk,121
|
|
394
|
+
sqlmesh-0.188.2.dev17.dist-info/top_level.txt,sha256=bspjo5vjELQkuN0qKuTFIbsrUt3Zeo8D2mlKeHG1LdE,12
|
|
395
|
+
sqlmesh-0.188.2.dev17.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|