sqlmesh 0.188.2.dev9__py3-none-any.whl → 0.188.2.dev11__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/connection.py +4 -1
- sqlmesh/lsp/completions.py +3 -1
- sqlmesh/lsp/context.py +14 -0
- sqlmesh/lsp/main.py +4 -3
- {sqlmesh-0.188.2.dev9.dist-info → sqlmesh-0.188.2.dev11.dist-info}/METADATA +1 -1
- {sqlmesh-0.188.2.dev9.dist-info → sqlmesh-0.188.2.dev11.dist-info}/RECORD +11 -11
- {sqlmesh-0.188.2.dev9.dist-info → sqlmesh-0.188.2.dev11.dist-info}/WHEEL +0 -0
- {sqlmesh-0.188.2.dev9.dist-info → sqlmesh-0.188.2.dev11.dist-info}/entry_points.txt +0 -0
- {sqlmesh-0.188.2.dev9.dist-info → sqlmesh-0.188.2.dev11.dist-info}/licenses/LICENSE +0 -0
- {sqlmesh-0.188.2.dev9.dist-info → sqlmesh-0.188.2.dev11.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.dev11'
|
|
21
|
+
__version_tuple__ = version_tuple = (0, 188, 2, 'dev11')
|
|
@@ -224,6 +224,7 @@ class DuckDBAttachOptions(BaseConfig):
|
|
|
224
224
|
# DuckLake specific options
|
|
225
225
|
data_path: t.Optional[str] = None
|
|
226
226
|
encrypted: bool = False
|
|
227
|
+
data_inlining_row_limit: t.Optional[int] = None
|
|
227
228
|
|
|
228
229
|
def to_sql(self, alias: str) -> str:
|
|
229
230
|
options = []
|
|
@@ -236,10 +237,12 @@ class DuckDBAttachOptions(BaseConfig):
|
|
|
236
237
|
|
|
237
238
|
# DuckLake specific options
|
|
238
239
|
if self.type == "ducklake":
|
|
239
|
-
if self.data_path:
|
|
240
|
+
if self.data_path is not None:
|
|
240
241
|
options.append(f"DATA_PATH '{self.data_path}'")
|
|
241
242
|
if self.encrypted:
|
|
242
243
|
options.append("ENCRYPTED")
|
|
244
|
+
if self.data_inlining_row_limit is not None:
|
|
245
|
+
options.append(f"DATA_INLINING_ROW_LIMIT {self.data_inlining_row_limit}")
|
|
243
246
|
|
|
244
247
|
options_sql = f" ({', '.join(options)})" if options else ""
|
|
245
248
|
alias_sql = ""
|
sqlmesh/lsp/completions.py
CHANGED
|
@@ -6,7 +6,9 @@ from sqlmesh.lsp.context import AuditTarget, LSPContext, ModelTarget
|
|
|
6
6
|
from sqlmesh.lsp.uri import URI
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
def get_sql_completions(
|
|
9
|
+
def get_sql_completions(
|
|
10
|
+
context: t.Optional[LSPContext], file_uri: t.Optional[URI]
|
|
11
|
+
) -> AllModelsResponse:
|
|
10
12
|
"""
|
|
11
13
|
Return a list of completions for a given file.
|
|
12
14
|
"""
|
sqlmesh/lsp/context.py
CHANGED
|
@@ -6,6 +6,7 @@ import typing as t
|
|
|
6
6
|
from sqlmesh.core.model.definition import SqlModel
|
|
7
7
|
from sqlmesh.core.linter.definition import AnnotatedRuleViolation
|
|
8
8
|
from sqlmesh.lsp.custom import RenderModelEntry, ModelForRendering
|
|
9
|
+
from sqlmesh.lsp.custom import AllModelsResponse, RenderModelEntry
|
|
9
10
|
from sqlmesh.lsp.uri import URI
|
|
10
11
|
|
|
11
12
|
|
|
@@ -174,3 +175,16 @@ class LSPContext:
|
|
|
174
175
|
for audit in self.context.standalone_audits.values()
|
|
175
176
|
if audit._path is not None
|
|
176
177
|
]
|
|
178
|
+
|
|
179
|
+
def get_autocomplete(self, uri: t.Optional[URI]) -> AllModelsResponse:
|
|
180
|
+
"""Get autocomplete suggestions for a file.
|
|
181
|
+
|
|
182
|
+
Args:
|
|
183
|
+
uri: The URI of the file to get autocomplete suggestions for.
|
|
184
|
+
|
|
185
|
+
Returns:
|
|
186
|
+
AllModelsResponse containing models and keywords.
|
|
187
|
+
"""
|
|
188
|
+
from sqlmesh.lsp.completions import get_sql_completions
|
|
189
|
+
|
|
190
|
+
return get_sql_completions(self, uri)
|
sqlmesh/lsp/main.py
CHANGED
|
@@ -20,7 +20,6 @@ from sqlmesh.lsp.api import (
|
|
|
20
20
|
ApiResponseGetLineage,
|
|
21
21
|
ApiResponseGetModels,
|
|
22
22
|
)
|
|
23
|
-
from sqlmesh.lsp.completions import get_sql_completions
|
|
24
23
|
from sqlmesh.lsp.context import (
|
|
25
24
|
LSPContext,
|
|
26
25
|
ModelTarget,
|
|
@@ -115,9 +114,11 @@ class SQLMeshLanguageServer:
|
|
|
115
114
|
uri = URI(params.textDocument.uri)
|
|
116
115
|
try:
|
|
117
116
|
context = self._context_get_or_load(uri)
|
|
118
|
-
return
|
|
117
|
+
return context.get_autocomplete(uri)
|
|
119
118
|
except Exception as e:
|
|
120
|
-
|
|
119
|
+
from sqlmesh.lsp.completions import get_sql_completions
|
|
120
|
+
|
|
121
|
+
return get_sql_completions(None, URI(params.textDocument.uri))
|
|
121
122
|
|
|
122
123
|
@self.server.feature(RENDER_MODEL_FEATURE)
|
|
123
124
|
def render_model(ls: LanguageServer, params: RenderModelRequest) -> RenderModelResponse:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
sqlmesh/__init__.py,sha256=69xw6bTmi4cW90M-sl3g6wLDgxVcLHcKg1q8GS3lqyA,7466
|
|
2
|
-
sqlmesh/_version.py,sha256=
|
|
2
|
+
sqlmesh/_version.py,sha256=mUPYO9odIh8BBN1Uetgx_73kFLYdvXm9JGAgdoENUOU,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
|
|
@@ -41,7 +41,7 @@ sqlmesh/core/config/__init__.py,sha256=b4gFb04tpeZpowqJD-7h3U3TLgxrpQhZahVEAo6VW
|
|
|
41
41
|
sqlmesh/core/config/base.py,sha256=t8NQmsgQoZSc-k0dlDiCb8t1jj0AMYdGZ-6se9q_Pks,4898
|
|
42
42
|
sqlmesh/core/config/categorizer.py,sha256=6vzUoNLjR6GOEb_2mYVz2TwmMv2BfldgHX2u-Le5HZs,1975
|
|
43
43
|
sqlmesh/core/config/common.py,sha256=-o_HoRFtR4u84frg_TLno7z7vS9II6ASiOayb59MKHo,2806
|
|
44
|
-
sqlmesh/core/config/connection.py,sha256=
|
|
44
|
+
sqlmesh/core/config/connection.py,sha256=36m_RPcCx6mhDkJPweAdlTm_T5kZW34yJtknMAOu6II,76513
|
|
45
45
|
sqlmesh/core/config/feature_flag.py,sha256=JRcD31OG_t2cYc24meKbHDGB0iVID0P07V2oOeB_mgA,203
|
|
46
46
|
sqlmesh/core/config/format.py,sha256=6CXFbvnor56xbldKE-Vrm9k_ABRoY4v6vgIb3mCihiQ,1355
|
|
47
47
|
sqlmesh/core/config/gateway.py,sha256=tYngyqwd_4Qr9lhcv2hlvLvb_2pgYYtKu6hdGsTr-4I,1931
|
|
@@ -156,11 +156,11 @@ sqlmesh/integrations/github/cicd/command.py,sha256=3toifUNTXpYvvOVXb_BiOAgna8CNO
|
|
|
156
156
|
sqlmesh/integrations/github/cicd/config.py,sha256=tRhMZaLf1p6AWXvi67n85Q-lptJNGt1Wk_Jr61ytpiM,2104
|
|
157
157
|
sqlmesh/integrations/github/cicd/controller.py,sha256=FmOO93RF5auSU6aDU2beiP5LblLs38eAUYgHGWB9jYc,41666
|
|
158
158
|
sqlmesh/lsp/api.py,sha256=LJdECSaEZoPbu_Xl4KscVG-WLt7_g4dY-zKGO68dH14,2162
|
|
159
|
-
sqlmesh/lsp/completions.py,sha256=
|
|
160
|
-
sqlmesh/lsp/context.py,sha256=
|
|
159
|
+
sqlmesh/lsp/completions.py,sha256=Ufe5XyqmT8ttXqQDbhH2RtuGC0cVuVfSnGqDMl6KmB4,3601
|
|
160
|
+
sqlmesh/lsp/context.py,sha256=ozkrw-897_Scbbn4AnKdeTQhrUb0CI0e34vcV-5U2DA,6158
|
|
161
161
|
sqlmesh/lsp/custom.py,sha256=Mml6V1nYAHdP4Zt8gxly1ZLKYALtxGeAVzPrrYpc7m8,1426
|
|
162
162
|
sqlmesh/lsp/description.py,sha256=4QIGC9ix8IzmWF6DVUNhY4m1Crk3sNQA6hZ1RbyqU78,827
|
|
163
|
-
sqlmesh/lsp/main.py,sha256=
|
|
163
|
+
sqlmesh/lsp/main.py,sha256=qrDFfG_VG7NUOtutLU8lizNng3ZVVaxM2UQuirx8VMk,28922
|
|
164
164
|
sqlmesh/lsp/reference.py,sha256=-HkMMzRzq4ike5mSkoWajanYNMAwhQhlPaqw62451ac,16887
|
|
165
165
|
sqlmesh/lsp/uri.py,sha256=mvSLbZGmMTHPpliThOtVWiFcHnfJzp1w39q9l-xD2SI,802
|
|
166
166
|
sqlmesh/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -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.dev11.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.dev11.dist-info/METADATA,sha256=COIuvNnRDtiMzo7-Zk2LzVaD5cTPmpIImbOQ3y6bktA,26532
|
|
392
|
+
sqlmesh-0.188.2.dev11.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
393
|
+
sqlmesh-0.188.2.dev11.dist-info/entry_points.txt,sha256=pIYKtg-u-uO7BK_Y0qrdmfyj0bYrcMc3Xiqr5WE3VFk,121
|
|
394
|
+
sqlmesh-0.188.2.dev11.dist-info/top_level.txt,sha256=bspjo5vjELQkuN0qKuTFIbsrUt3Zeo8D2mlKeHG1LdE,12
|
|
395
|
+
sqlmesh-0.188.2.dev11.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|