sqlmesh 0.196.4.dev3__py3-none-any.whl → 0.196.4.dev4__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/state_sync/db/environment.py +18 -14
- sqlmesh/core/state_sync/db/facade.py +0 -4
- {sqlmesh-0.196.4.dev3.dist-info → sqlmesh-0.196.4.dev4.dist-info}/METADATA +1 -1
- {sqlmesh-0.196.4.dev3.dist-info → sqlmesh-0.196.4.dev4.dist-info}/RECORD +9 -9
- {sqlmesh-0.196.4.dev3.dist-info → sqlmesh-0.196.4.dev4.dist-info}/WHEEL +0 -0
- {sqlmesh-0.196.4.dev3.dist-info → sqlmesh-0.196.4.dev4.dist-info}/entry_points.txt +0 -0
- {sqlmesh-0.196.4.dev3.dist-info → sqlmesh-0.196.4.dev4.dist-info}/licenses/LICENSE +0 -0
- {sqlmesh-0.196.4.dev3.dist-info → sqlmesh-0.196.4.dev4.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.196.4.
|
|
21
|
-
__version_tuple__ = version_tuple = (0, 196, 4, '
|
|
20
|
+
__version__ = version = '0.196.4.dev4'
|
|
21
|
+
__version_tuple__ = version_tuple = (0, 196, 4, 'dev4')
|
|
@@ -172,13 +172,9 @@ class EnvironmentState:
|
|
|
172
172
|
Returns:
|
|
173
173
|
The list of environment summaries to remove.
|
|
174
174
|
"""
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
env_summary
|
|
179
|
-
for env_summary in environment_summaries
|
|
180
|
-
if env_summary.expiration_ts is not None and env_summary.expiration_ts <= current_ts
|
|
181
|
-
]
|
|
175
|
+
return self._fetch_environment_summaries(
|
|
176
|
+
where=self._create_expiration_filter_expr(current_ts)
|
|
177
|
+
)
|
|
182
178
|
|
|
183
179
|
def delete_expired_environments(
|
|
184
180
|
self, current_ts: t.Optional[int] = None
|
|
@@ -225,13 +221,7 @@ class EnvironmentState:
|
|
|
225
221
|
Returns:
|
|
226
222
|
A list of all environment summaries.
|
|
227
223
|
"""
|
|
228
|
-
return
|
|
229
|
-
self._environment_summmary_from_row(row)
|
|
230
|
-
for row in fetchall(
|
|
231
|
-
self.engine_adapter,
|
|
232
|
-
self._environments_query(required_fields=list(EnvironmentSummary.all_fields())),
|
|
233
|
-
)
|
|
234
|
-
]
|
|
224
|
+
return self._fetch_environment_summaries()
|
|
235
225
|
|
|
236
226
|
def get_environment(
|
|
237
227
|
self, environment: str, lock_for_update: bool = False
|
|
@@ -327,6 +317,20 @@ class EnvironmentState:
|
|
|
327
317
|
expression=exp.Literal.number(current_ts),
|
|
328
318
|
)
|
|
329
319
|
|
|
320
|
+
def _fetch_environment_summaries(
|
|
321
|
+
self, where: t.Optional[str | exp.Expression] = None
|
|
322
|
+
) -> t.List[EnvironmentSummary]:
|
|
323
|
+
return [
|
|
324
|
+
self._environment_summmary_from_row(row)
|
|
325
|
+
for row in fetchall(
|
|
326
|
+
self.engine_adapter,
|
|
327
|
+
self._environments_query(
|
|
328
|
+
where=where,
|
|
329
|
+
required_fields=list(EnvironmentSummary.all_fields()),
|
|
330
|
+
),
|
|
331
|
+
)
|
|
332
|
+
]
|
|
333
|
+
|
|
330
334
|
|
|
331
335
|
def _environment_to_df(environment: Environment) -> pd.DataFrame:
|
|
332
336
|
import pandas as pd
|
|
@@ -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=Sbs5mI0K40FJjUxlBLcHzjhPY0fwigOuXIJnvuUd6f8,528
|
|
3
3
|
sqlmesh/magics.py,sha256=nMfwSW5rIkdnyO9MXYm9u24hNl6dqgAWybC-MnRcNnE,41451
|
|
4
4
|
sqlmesh/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
sqlmesh/cicd/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -110,8 +110,8 @@ sqlmesh/core/state_sync/cache.py,sha256=0AsYdQyBqbLdJvkBQ-hDAipsvnn_jSps-nya-Q4X
|
|
|
110
110
|
sqlmesh/core/state_sync/common.py,sha256=x8Nkox6VmkD-lYZkjRcNe3iVsChR1HBroTorf1kATpQ,7609
|
|
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
|
-
sqlmesh/core/state_sync/db/environment.py,sha256=
|
|
114
|
-
sqlmesh/core/state_sync/db/facade.py,sha256=
|
|
113
|
+
sqlmesh/core/state_sync/db/environment.py,sha256=iTxrdNlKB36S54PUdlqEqlxiAZJtKNExHBtsIbaXT30,13675
|
|
114
|
+
sqlmesh/core/state_sync/db/facade.py,sha256=xeJpEgrvztn3Ye2JM9tJOZxozYlEtpAYwJta3kEf3gQ,25302
|
|
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
117
|
sqlmesh/core/state_sync/db/snapshot.py,sha256=7ccdRxni4UGAul-_15z6-I9GAifC94jfNTvAdUEQ9pw,29480
|
|
@@ -283,7 +283,7 @@ sqlmesh/utils/pydantic.py,sha256=I898jAFqa3qU6lG2uPpRebVFncOUo8ZrLWM_R3K3DHU,116
|
|
|
283
283
|
sqlmesh/utils/rich.py,sha256=BpB47G0-JcU41LkGkeGKroexj4NOV5fox4-GOIXPgIc,3545
|
|
284
284
|
sqlmesh/utils/windows.py,sha256=r7Yin4WEwbvH7sKA3hOJtRsclmscNuBeCklCfVPvtQs,611
|
|
285
285
|
sqlmesh/utils/yaml.py,sha256=hvo5lmybYLcIx4p6CQwufS8X4MbwS60lEBnCmYJCXmU,2336
|
|
286
|
-
sqlmesh-0.196.4.
|
|
286
|
+
sqlmesh-0.196.4.dev4.dist-info/licenses/LICENSE,sha256=OlMefUjgWJdULtf84BLW0AZZcY8DwdgQqb_1j2862j8,11346
|
|
287
287
|
web/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
288
288
|
web/client/dist/index.html,sha256=drXwzSCEVDTMfaIwzJYjnT8Xk4c-Y4wNJz-CflUa_vY,5472
|
|
289
289
|
web/client/dist/assets/Audits-DrNQaTQA.js,sha256=E8JF632bsRUm6LGtgXlyHrJOYQe5VW2CgRZPaZNKvgg,1041
|
|
@@ -401,8 +401,8 @@ web/server/api/endpoints/models.py,sha256=ud-lRwriyI_OYg9tZchrBgeiXELiRTLNEodraf
|
|
|
401
401
|
web/server/api/endpoints/modules.py,sha256=8hqqgonGay_mJmpCw0IdbjsPhWlQH2VLdKAqha-myac,468
|
|
402
402
|
web/server/api/endpoints/plan.py,sha256=OYuQ_4dgbhG9ibTcX1a8mvYgH3ANxw9Fhbb4wg6QWqc,9222
|
|
403
403
|
web/server/api/endpoints/table_diff.py,sha256=SCy3-pr5x6bEEiOaZGCDbiHQhpgxwmnz3Acqa2Ie6jI,2090
|
|
404
|
-
sqlmesh-0.196.4.
|
|
405
|
-
sqlmesh-0.196.4.
|
|
406
|
-
sqlmesh-0.196.4.
|
|
407
|
-
sqlmesh-0.196.4.
|
|
408
|
-
sqlmesh-0.196.4.
|
|
404
|
+
sqlmesh-0.196.4.dev4.dist-info/METADATA,sha256=h6q9S1YZ026eaeFxmX7WhhGf800VgJtIgxpAE2T-Mw0,26527
|
|
405
|
+
sqlmesh-0.196.4.dev4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
406
|
+
sqlmesh-0.196.4.dev4.dist-info/entry_points.txt,sha256=pIYKtg-u-uO7BK_Y0qrdmfyj0bYrcMc3Xiqr5WE3VFk,121
|
|
407
|
+
sqlmesh-0.196.4.dev4.dist-info/top_level.txt,sha256=bspjo5vjELQkuN0qKuTFIbsrUt3Zeo8D2mlKeHG1LdE,12
|
|
408
|
+
sqlmesh-0.196.4.dev4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|