sqlmesh 0.184.3.dev14__py3-none-any.whl → 0.184.3.dev15__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/lsp/main.py +8 -6
- {sqlmesh-0.184.3.dev14.dist-info → sqlmesh-0.184.3.dev15.dist-info}/METADATA +1 -1
- {sqlmesh-0.184.3.dev14.dist-info → sqlmesh-0.184.3.dev15.dist-info}/RECORD +8 -8
- {sqlmesh-0.184.3.dev14.dist-info → sqlmesh-0.184.3.dev15.dist-info}/WHEEL +0 -0
- {sqlmesh-0.184.3.dev14.dist-info → sqlmesh-0.184.3.dev15.dist-info}/entry_points.txt +0 -0
- {sqlmesh-0.184.3.dev14.dist-info → sqlmesh-0.184.3.dev15.dist-info}/licenses/LICENSE +0 -0
- {sqlmesh-0.184.3.dev14.dist-info → sqlmesh-0.184.3.dev15.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.184.3.
|
|
21
|
-
__version_tuple__ = version_tuple = (0, 184, 3, '
|
|
20
|
+
__version__ = version = '0.184.3.dev15'
|
|
21
|
+
__version_tuple__ = version_tuple = (0, 184, 3, 'dev15')
|
sqlmesh/lsp/main.py
CHANGED
|
@@ -92,9 +92,7 @@ class SQLMeshLanguageServer:
|
|
|
92
92
|
return get_sql_completions(None, uri)
|
|
93
93
|
|
|
94
94
|
@self.server.feature(API_FEATURE)
|
|
95
|
-
def api(
|
|
96
|
-
ls: LanguageServer, request: ApiRequest
|
|
97
|
-
) -> t.Union[ApiResponseGetModels, ApiResponseGetLineage, ApiResponseGetColumnLineage]:
|
|
95
|
+
def api(ls: LanguageServer, request: ApiRequest) -> t.Dict[str, t.Any]:
|
|
98
96
|
ls.log_trace(f"API request: {request}")
|
|
99
97
|
if self.lsp_context is None:
|
|
100
98
|
raise RuntimeError("No context found")
|
|
@@ -105,7 +103,9 @@ class SQLMeshLanguageServer:
|
|
|
105
103
|
if request.method == "GET":
|
|
106
104
|
if path_parts == ["api", "models"]:
|
|
107
105
|
# /api/models
|
|
108
|
-
return ApiResponseGetModels(
|
|
106
|
+
return ApiResponseGetModels(
|
|
107
|
+
data=get_models(self.lsp_context.context)
|
|
108
|
+
).model_dump(mode="json")
|
|
109
109
|
|
|
110
110
|
if path_parts[:2] == ["api", "lineage"]:
|
|
111
111
|
if len(path_parts) == 3:
|
|
@@ -113,7 +113,7 @@ class SQLMeshLanguageServer:
|
|
|
113
113
|
model_name = urllib.parse.unquote(path_parts[2])
|
|
114
114
|
lineage = model_lineage(model_name, self.lsp_context.context)
|
|
115
115
|
non_set_lineage = {k: v for k, v in lineage.items() if v is not None}
|
|
116
|
-
return ApiResponseGetLineage(data=non_set_lineage)
|
|
116
|
+
return ApiResponseGetLineage(data=non_set_lineage).model_dump(mode="json")
|
|
117
117
|
|
|
118
118
|
if len(path_parts) == 4:
|
|
119
119
|
# /api/lineage/{model}/{column}
|
|
@@ -123,7 +123,9 @@ class SQLMeshLanguageServer:
|
|
|
123
123
|
column_lineage_response = column_lineage(
|
|
124
124
|
model_name, column, False, self.lsp_context.context
|
|
125
125
|
)
|
|
126
|
-
return ApiResponseGetColumnLineage(data=column_lineage_response)
|
|
126
|
+
return ApiResponseGetColumnLineage(data=column_lineage_response).model_dump(
|
|
127
|
+
mode="json"
|
|
128
|
+
)
|
|
127
129
|
|
|
128
130
|
raise NotImplementedError(f"API request not implemented: {request.url}")
|
|
129
131
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
sqlmesh/__init__.py,sha256=DRovDXI-9D9xeYDP7t8Fq7mI31S2btlN-LHPOK3y7PA,7240
|
|
2
|
-
sqlmesh/_version.py,sha256=
|
|
2
|
+
sqlmesh/_version.py,sha256=s-3Q0L1-KJMFcPuWAuRMpr45rp2ISABbkEPRkki3KNI,530
|
|
3
3
|
sqlmesh/magics.py,sha256=aeOyTdeNnyGzGtJXECDAbqJ8OAplrV4UAYl0I2hhtig,39670
|
|
4
4
|
sqlmesh/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
sqlmesh/cicd/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -159,7 +159,7 @@ sqlmesh/lsp/api.py,sha256=LJdECSaEZoPbu_Xl4KscVG-WLt7_g4dY-zKGO68dH14,2162
|
|
|
159
159
|
sqlmesh/lsp/completions.py,sha256=Uo8lUzPBeoB58Eu2642YoAtNI0pgIFWFSvwmuJALTv4,3583
|
|
160
160
|
sqlmesh/lsp/context.py,sha256=Ff09vrsawdYS-7YcXbGZW_RU-tj_-k8WV7maCghpYp0,1438
|
|
161
161
|
sqlmesh/lsp/custom.py,sha256=GvNAiW7imPI8xmIx3qLWN5FljGPHFJKh0N5b6aZnwRo,489
|
|
162
|
-
sqlmesh/lsp/main.py,sha256=
|
|
162
|
+
sqlmesh/lsp/main.py,sha256=7Q1XiEmIxsGQBICXUM7I0vUaN5msTg9qfbodasEGR8U,17111
|
|
163
163
|
sqlmesh/lsp/reference.py,sha256=MiTnNmaGrVs1Scms3jHkZ89Cu8_ZLJGAHcs1LRywFdU,8129
|
|
164
164
|
sqlmesh/lsp/uri.py,sha256=mvSLbZGmMTHPpliThOtVWiFcHnfJzp1w39q9l-xD2SI,802
|
|
165
165
|
sqlmesh/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -268,7 +268,7 @@ sqlmesh/utils/pydantic.py,sha256=-u69PDY-4FLR7ODNKBoN7PsPNmZ0wdhsJcCAG2P6vyY,110
|
|
|
268
268
|
sqlmesh/utils/rich.py,sha256=xNZyPCqEc4TAlJlsEthg-5eYUWpaizz0QjBzO7a1Yv4,1509
|
|
269
269
|
sqlmesh/utils/windows.py,sha256=r7Yin4WEwbvH7sKA3hOJtRsclmscNuBeCklCfVPvtQs,611
|
|
270
270
|
sqlmesh/utils/yaml.py,sha256=np-WVcwmwsKghCgAj1OBBMsK1SXSRn4wR-H37cGiFr8,2282
|
|
271
|
-
sqlmesh-0.184.3.
|
|
271
|
+
sqlmesh-0.184.3.dev15.dist-info/licenses/LICENSE,sha256=OlMefUjgWJdULtf84BLW0AZZcY8DwdgQqb_1j2862j8,11346
|
|
272
272
|
web/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
273
273
|
web/client/dist/index.html,sha256=h-jIuvBTQ-QurWEds39umXiJjP_TWPQmkHTiizCAeOI,5472
|
|
274
274
|
web/client/dist/assets/Audits-DIPZFtrx.js,sha256=Yn24xPBT3znH0fQJJaBLb1p1wjJz1nWjrZcm18e63W0,1041
|
|
@@ -386,8 +386,8 @@ web/server/api/endpoints/models.py,sha256=ud-lRwriyI_OYg9tZchrBgeiXELiRTLNEodraf
|
|
|
386
386
|
web/server/api/endpoints/modules.py,sha256=8hqqgonGay_mJmpCw0IdbjsPhWlQH2VLdKAqha-myac,468
|
|
387
387
|
web/server/api/endpoints/plan.py,sha256=OYuQ_4dgbhG9ibTcX1a8mvYgH3ANxw9Fhbb4wg6QWqc,9222
|
|
388
388
|
web/server/api/endpoints/table_diff.py,sha256=Wd5YxeKbZB7AkrDvqFgvV9ZQlnKYOF1n5W_w2EHE_Zw,2085
|
|
389
|
-
sqlmesh-0.184.3.
|
|
390
|
-
sqlmesh-0.184.3.
|
|
391
|
-
sqlmesh-0.184.3.
|
|
392
|
-
sqlmesh-0.184.3.
|
|
393
|
-
sqlmesh-0.184.3.
|
|
389
|
+
sqlmesh-0.184.3.dev15.dist-info/METADATA,sha256=cN2ODI_PORX6fLk2yfYLbeAcdqLvACQ7f3xYqGm5Adw,25499
|
|
390
|
+
sqlmesh-0.184.3.dev15.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
|
|
391
|
+
sqlmesh-0.184.3.dev15.dist-info/entry_points.txt,sha256=pIYKtg-u-uO7BK_Y0qrdmfyj0bYrcMc3Xiqr5WE3VFk,121
|
|
392
|
+
sqlmesh-0.184.3.dev15.dist-info/top_level.txt,sha256=bspjo5vjELQkuN0qKuTFIbsrUt3Zeo8D2mlKeHG1LdE,12
|
|
393
|
+
sqlmesh-0.184.3.dev15.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|