sqlmesh 0.199.1.dev21__py3-none-any.whl → 0.199.1.dev22__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 +12 -4
- {sqlmesh-0.199.1.dev21.dist-info → sqlmesh-0.199.1.dev22.dist-info}/METADATA +1 -1
- {sqlmesh-0.199.1.dev21.dist-info → sqlmesh-0.199.1.dev22.dist-info}/RECORD +8 -8
- {sqlmesh-0.199.1.dev21.dist-info → sqlmesh-0.199.1.dev22.dist-info}/WHEEL +0 -0
- {sqlmesh-0.199.1.dev21.dist-info → sqlmesh-0.199.1.dev22.dist-info}/entry_points.txt +0 -0
- {sqlmesh-0.199.1.dev21.dist-info → sqlmesh-0.199.1.dev22.dist-info}/licenses/LICENSE +0 -0
- {sqlmesh-0.199.1.dev21.dist-info → sqlmesh-0.199.1.dev22.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.199.1.
|
|
21
|
-
__version_tuple__ = version_tuple = (0, 199, 1, '
|
|
20
|
+
__version__ = version = '0.199.1.dev22'
|
|
21
|
+
__version_tuple__ = version_tuple = (0, 199, 1, 'dev22')
|
|
@@ -277,7 +277,7 @@ class BaseDuckDBConnectionConfig(ConnectionConfig):
|
|
|
277
277
|
catalogs: t.Optional[t.Dict[str, t.Union[str, DuckDBAttachOptions]]] = None
|
|
278
278
|
extensions: t.List[t.Union[str, t.Dict[str, t.Any]]] = []
|
|
279
279
|
connector_config: t.Dict[str, t.Any] = {}
|
|
280
|
-
secrets: t.List[t.Dict[str, t.Any]] = []
|
|
280
|
+
secrets: t.Union[t.List[t.Dict[str, t.Any]], t.Dict[str, t.Dict[str, t.Any]]] = []
|
|
281
281
|
filesystems: t.List[t.Dict[str, t.Any]] = []
|
|
282
282
|
|
|
283
283
|
concurrent_tasks: int = 1
|
|
@@ -362,14 +362,22 @@ class BaseDuckDBConnectionConfig(ConnectionConfig):
|
|
|
362
362
|
"More info: https://duckdb.org/docs/stable/extensions/httpfs/s3api_legacy_authentication.html"
|
|
363
363
|
)
|
|
364
364
|
else:
|
|
365
|
-
|
|
365
|
+
if isinstance(self.secrets, list):
|
|
366
|
+
secrets_items = [(secret_dict, "") for secret_dict in self.secrets]
|
|
367
|
+
else:
|
|
368
|
+
secrets_items = [
|
|
369
|
+
(secret_dict, secret_name)
|
|
370
|
+
for secret_name, secret_dict in self.secrets.items()
|
|
371
|
+
]
|
|
372
|
+
|
|
373
|
+
for secret_dict, secret_name in secrets_items:
|
|
366
374
|
secret_settings: t.List[str] = []
|
|
367
|
-
for field, setting in
|
|
375
|
+
for field, setting in secret_dict.items():
|
|
368
376
|
secret_settings.append(f"{field} '{setting}'")
|
|
369
377
|
if secret_settings:
|
|
370
378
|
secret_clause = ", ".join(secret_settings)
|
|
371
379
|
try:
|
|
372
|
-
cursor.execute(f"CREATE SECRET ({secret_clause});")
|
|
380
|
+
cursor.execute(f"CREATE SECRET {secret_name} ({secret_clause});")
|
|
373
381
|
except Exception as e:
|
|
374
382
|
raise ConfigError(f"Failed to create secret: {e}")
|
|
375
383
|
|
|
@@ -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=hzhEvFdvxLG58J4C_Xdk1irhqV0cqZuM3t0LEQ6kQXk,530
|
|
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
|
|
@@ -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=rsb2uVFqPEX3DMsWG_hApwztCuRJP-FAmaQ_5L3-S8g,4006
|
|
44
|
-
sqlmesh/core/config/connection.py,sha256=
|
|
44
|
+
sqlmesh/core/config/connection.py,sha256=e4tZJJxRy0pD6_AArzczn1P0xwuZxT_ME07mDQZ0TYw,86415
|
|
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
|
|
@@ -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.199.1.
|
|
287
|
+
sqlmesh-0.199.1.dev22.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=DAv6ABGogw4xRLb0T_92WP_S7XWyqVhwBgGKWtuQwU4,5472
|
|
290
290
|
web/client/dist/assets/Audits-BuHAmFO8.js,sha256=zbYUF6WdUGMbnMm01GMNPb7xAJwj-o5wMdL56vPo2qE,1041
|
|
@@ -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.199.1.
|
|
406
|
-
sqlmesh-0.199.1.
|
|
407
|
-
sqlmesh-0.199.1.
|
|
408
|
-
sqlmesh-0.199.1.
|
|
409
|
-
sqlmesh-0.199.1.
|
|
405
|
+
sqlmesh-0.199.1.dev22.dist-info/METADATA,sha256=ZOpMTvu9bECc4ouHScL8uIbLzRPkOnVN8jC-H09hibM,26659
|
|
406
|
+
sqlmesh-0.199.1.dev22.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
407
|
+
sqlmesh-0.199.1.dev22.dist-info/entry_points.txt,sha256=pIYKtg-u-uO7BK_Y0qrdmfyj0bYrcMc3Xiqr5WE3VFk,121
|
|
408
|
+
sqlmesh-0.199.1.dev22.dist-info/top_level.txt,sha256=bspjo5vjELQkuN0qKuTFIbsrUt3Zeo8D2mlKeHG1LdE,12
|
|
409
|
+
sqlmesh-0.199.1.dev22.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|