sqlmesh 0.201.1.dev5__py3-none-any.whl → 0.201.2.dev1__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 +22 -5
- {sqlmesh-0.201.1.dev5.dist-info → sqlmesh-0.201.2.dev1.dist-info}/METADATA +1 -1
- {sqlmesh-0.201.1.dev5.dist-info → sqlmesh-0.201.2.dev1.dist-info}/RECORD +8 -8
- {sqlmesh-0.201.1.dev5.dist-info → sqlmesh-0.201.2.dev1.dist-info}/WHEEL +0 -0
- {sqlmesh-0.201.1.dev5.dist-info → sqlmesh-0.201.2.dev1.dist-info}/entry_points.txt +0 -0
- {sqlmesh-0.201.1.dev5.dist-info → sqlmesh-0.201.2.dev1.dist-info}/licenses/LICENSE +0 -0
- {sqlmesh-0.201.1.dev5.dist-info → sqlmesh-0.201.2.dev1.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.201.
|
|
21
|
-
__version_tuple__ = version_tuple = (0, 201,
|
|
20
|
+
__version__ = version = '0.201.2.dev1'
|
|
21
|
+
__version_tuple__ = version_tuple = (0, 201, 2, 'dev1')
|
|
@@ -348,11 +348,28 @@ class BaseDuckDBConnectionConfig(ConnectionConfig):
|
|
|
348
348
|
except Exception as e:
|
|
349
349
|
raise ConfigError(f"Failed to load extension {extension['name']}: {e}")
|
|
350
350
|
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
351
|
+
if self.connector_config:
|
|
352
|
+
option_names = list(self.connector_config)
|
|
353
|
+
in_part = ",".join("?" for _ in range(len(option_names)))
|
|
354
|
+
|
|
355
|
+
cursor.execute(
|
|
356
|
+
f"SELECT name, value FROM duckdb_settings() WHERE name IN ({in_part})",
|
|
357
|
+
option_names,
|
|
358
|
+
)
|
|
359
|
+
|
|
360
|
+
existing_values = {field: setting for field, setting in cursor.fetchall()}
|
|
361
|
+
|
|
362
|
+
# only set connector_config items if the values differ from what is already set
|
|
363
|
+
# trying to set options like 'temp_directory' even to the same value can throw errors like:
|
|
364
|
+
# Not implemented Error: Cannot switch temporary directory after the current one has been used
|
|
365
|
+
for field, setting in self.connector_config.items():
|
|
366
|
+
if existing_values.get(field) != setting:
|
|
367
|
+
try:
|
|
368
|
+
cursor.execute(f"SET {field} = '{setting}'")
|
|
369
|
+
except Exception as e:
|
|
370
|
+
raise ConfigError(
|
|
371
|
+
f"Failed to set connector config {field} to {setting}: {e}"
|
|
372
|
+
)
|
|
356
373
|
|
|
357
374
|
if self.secrets:
|
|
358
375
|
duckdb_version = duckdb.__version__
|
|
@@ -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=hQHazrZwjilrrZX8wL1OKnB-tUikQtLSNpN9LZPiJ2c,528
|
|
3
3
|
sqlmesh/magics.py,sha256=bEzYqXHcM0P3CjyUZ1O9arlmXAdLAhoglKbQ29fD9AE,41842
|
|
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=NcS1qB0MKIBCfw6vUNLhalVKZTo2igS7VTrcV_T-VgA,88607
|
|
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=cwQ5nJ6sgz64xHtoh6_ec7ReV5YpsOGhMtUJnwoRfEI,3549
|
|
285
285
|
sqlmesh/utils/windows.py,sha256=r7Yin4WEwbvH7sKA3hOJtRsclmscNuBeCklCfVPvtQs,611
|
|
286
286
|
sqlmesh/utils/yaml.py,sha256=hvo5lmybYLcIx4p6CQwufS8X4MbwS60lEBnCmYJCXmU,2336
|
|
287
|
-
sqlmesh-0.201.
|
|
287
|
+
sqlmesh-0.201.2.dev1.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=kwj0s7uve3iZSMfmjkoPVMFMeY1sD0peTeyrWf
|
|
|
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.201.
|
|
406
|
-
sqlmesh-0.201.
|
|
407
|
-
sqlmesh-0.201.
|
|
408
|
-
sqlmesh-0.201.
|
|
409
|
-
sqlmesh-0.201.
|
|
405
|
+
sqlmesh-0.201.2.dev1.dist-info/METADATA,sha256=k-puQ_Tjflc39pgRlT-XmHBmN8RfmgdYBwdaLZCIqZ0,26678
|
|
406
|
+
sqlmesh-0.201.2.dev1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
407
|
+
sqlmesh-0.201.2.dev1.dist-info/entry_points.txt,sha256=pIYKtg-u-uO7BK_Y0qrdmfyj0bYrcMc3Xiqr5WE3VFk,121
|
|
408
|
+
sqlmesh-0.201.2.dev1.dist-info/top_level.txt,sha256=bspjo5vjELQkuN0qKuTFIbsrUt3Zeo8D2mlKeHG1LdE,12
|
|
409
|
+
sqlmesh-0.201.2.dev1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|