dbt-adapters 1.3.1__py3-none-any.whl → 1.3.2__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.
Potentially problematic release.
This version of dbt-adapters might be problematic. Click here for more details.
- dbt/adapters/__about__.py +1 -1
- dbt/adapters/base/impl.py +6 -2
- dbt/adapters/events/types.py +1 -1
- dbt/adapters/sql/connections.py +3 -2
- {dbt_adapters-1.3.1.dist-info → dbt_adapters-1.3.2.dist-info}/METADATA +1 -1
- {dbt_adapters-1.3.1.dist-info → dbt_adapters-1.3.2.dist-info}/RECORD +8 -8
- {dbt_adapters-1.3.1.dist-info → dbt_adapters-1.3.2.dist-info}/WHEEL +1 -1
- {dbt_adapters-1.3.1.dist-info → dbt_adapters-1.3.2.dist-info}/licenses/LICENSE +0 -0
dbt/adapters/__about__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
version = "1.3.
|
|
1
|
+
version = "1.3.2"
|
dbt/adapters/base/impl.py
CHANGED
|
@@ -319,14 +319,18 @@ class BaseAdapter(metaclass=AdapterMeta):
|
|
|
319
319
|
return conn.name
|
|
320
320
|
|
|
321
321
|
@contextmanager
|
|
322
|
-
def connection_named(
|
|
322
|
+
def connection_named(
|
|
323
|
+
self, name: str, query_header_context: Any = None, should_release_connection=True
|
|
324
|
+
) -> Iterator[None]:
|
|
323
325
|
try:
|
|
324
326
|
if self.connections.query_header is not None:
|
|
325
327
|
self.connections.query_header.set(name, query_header_context)
|
|
326
328
|
self.acquire_connection(name)
|
|
327
329
|
yield
|
|
328
330
|
finally:
|
|
329
|
-
|
|
331
|
+
if should_release_connection:
|
|
332
|
+
self.release_connection()
|
|
333
|
+
|
|
330
334
|
if self.connections.query_header is not None:
|
|
331
335
|
self.connections.query_header.reset()
|
|
332
336
|
|
dbt/adapters/events/types.py
CHANGED
|
@@ -190,7 +190,7 @@ class SQLQueryStatus(DebugLevel):
|
|
|
190
190
|
return "E017"
|
|
191
191
|
|
|
192
192
|
def message(self) -> str:
|
|
193
|
-
return f"SQL status: {self.status} in {self.elapsed} seconds"
|
|
193
|
+
return f"SQL status: {self.status} in {self.elapsed:.3f} seconds"
|
|
194
194
|
|
|
195
195
|
|
|
196
196
|
class SQLCommit(DebugLevel):
|
dbt/adapters/sql/connections.py
CHANGED
|
@@ -88,7 +88,8 @@ class SQLConnectionManager(BaseConnectionManager):
|
|
|
88
88
|
node_info=get_node_info(),
|
|
89
89
|
)
|
|
90
90
|
)
|
|
91
|
-
|
|
91
|
+
|
|
92
|
+
pre = time.perf_counter()
|
|
92
93
|
|
|
93
94
|
cursor = connection.handle.cursor()
|
|
94
95
|
cursor.execute(sql, bindings)
|
|
@@ -96,7 +97,7 @@ class SQLConnectionManager(BaseConnectionManager):
|
|
|
96
97
|
fire_event(
|
|
97
98
|
SQLQueryStatus(
|
|
98
99
|
status=str(self.get_response(cursor)),
|
|
99
|
-
elapsed=
|
|
100
|
+
elapsed=time.perf_counter() - pre,
|
|
100
101
|
node_info=get_node_info(),
|
|
101
102
|
)
|
|
102
103
|
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: dbt-adapters
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.2
|
|
4
4
|
Summary: The set of adapter protocols and base functionality that supports integration with dbt-core
|
|
5
5
|
Project-URL: Homepage, https://github.com/dbt-labs/dbt-adapters
|
|
6
6
|
Project-URL: Documentation, https://docs.getdbt.com
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
dbt/__init__.py,sha256=iY4jdvOxcDhkdr5FiyOTZPHadKtMZDQ-qC6Fw6_EHPM,277
|
|
2
|
-
dbt/adapters/__about__.py,sha256=
|
|
2
|
+
dbt/adapters/__about__.py,sha256=d_9qKGE8SF0PKp68I9vjmi62C9Vy9vqYwA_w4aWUwZM,18
|
|
3
3
|
dbt/adapters/__init__.py,sha256=3noHsg-64qI0_Pw6OR9F7l1vU2_qrJvinq8POTtuaZM,252
|
|
4
4
|
dbt/adapters/cache.py,sha256=WGy4ewnz-J13LverTACBW2iFhGswrWLgm-wiBrQnMzo,20084
|
|
5
5
|
dbt/adapters/capability.py,sha256=-Mbej2AL_bjQatHpFWUgsQ8z0zwnotyE9Y5DYHnX7NE,2364
|
|
@@ -13,7 +13,7 @@ dbt/adapters/base/README.md,sha256=muHQntC07Lh6L1XfVgwKhV5RltOPBLYPdQqd8_7l34c,5
|
|
|
13
13
|
dbt/adapters/base/__init__.py,sha256=KGGGbj8jGMjAFJdQ5YHcOpApMMVZ_6Xuni1swhpkqRY,423
|
|
14
14
|
dbt/adapters/base/column.py,sha256=M3iotEY5yi4xikXyXzD9oshBF9-xcJrIeQVu1sB85DI,5450
|
|
15
15
|
dbt/adapters/base/connections.py,sha256=-C5dOwGgMKH8n_v6wjwOxV7chBdS0GjOGwNQCUbhhWc,16951
|
|
16
|
-
dbt/adapters/base/impl.py,sha256=
|
|
16
|
+
dbt/adapters/base/impl.py,sha256=Z0rdtNs-XQC_fhnfqtTLOj2-mSFIa0m-6XiVb0S8VPg,68879
|
|
17
17
|
dbt/adapters/base/meta.py,sha256=MMqL2xBqdvoacNs9JcL0E38NZIhCP4RH4OD_z_jo7GQ,4644
|
|
18
18
|
dbt/adapters/base/plugin.py,sha256=rm0GjNHnWM2mn0GJOjciZLwn-02xlzWCoMT9u-epwP0,1076
|
|
19
19
|
dbt/adapters/base/query_headers.py,sha256=UluGd9IYCYkoMiDi5Yx_lnrCOSjWppjwRro4SIGgx8I,3496
|
|
@@ -30,7 +30,7 @@ dbt/adapters/events/adapter_types.proto,sha256=wFhPMVokFgU1KFyc4h4OKzX1I0I_d2AVB
|
|
|
30
30
|
dbt/adapters/events/adapter_types_pb2.py,sha256=06gi23B_q_wGp2EnjGuLW09SV578IjPsyH6RhACuBFU,26480
|
|
31
31
|
dbt/adapters/events/base_types.py,sha256=sTlNRl15GaRIrIDVxalf7sK08dfo3Ol1Ua2jbFO7-7c,966
|
|
32
32
|
dbt/adapters/events/logging.py,sha256=1nRFswQubgUrVHL5DB9ewBtbEv1-OcIXC7mMmu3NOaM,2350
|
|
33
|
-
dbt/adapters/events/types.py,sha256=
|
|
33
|
+
dbt/adapters/events/types.py,sha256=nW7_FgrEmWlM-HWPHrYcJ5K5QLZtfspLizyqlXrJaoE,12189
|
|
34
34
|
dbt/adapters/exceptions/__init__.py,sha256=LxRkxHARMzrPegrjha5tQ8vQi1PnL_ooq1SVqm9aiZs,1268
|
|
35
35
|
dbt/adapters/exceptions/alias.py,sha256=QlCd2jvatfndec1DQLMMBJ-C_7w8yAySuAFHK2ga1g8,798
|
|
36
36
|
dbt/adapters/exceptions/cache.py,sha256=u720DQQKm8pyf_9loD9HGA9WgaeZAlg0sBn0sGc-rhA,2492
|
|
@@ -43,7 +43,7 @@ dbt/adapters/relation_configs/config_base.py,sha256=IK9oKf9TuOTLIiKX8ms_X-p4yxZv
|
|
|
43
43
|
dbt/adapters/relation_configs/config_change.py,sha256=hf6fDWbZpKvZdM6z-OtY-GveipzfLRR_dsUZmYmXkdk,713
|
|
44
44
|
dbt/adapters/relation_configs/config_validation.py,sha256=wlJUMwOEPhYFch-LRtEWfLNJMq8jL1tRhOUHmNX8nFw,1978
|
|
45
45
|
dbt/adapters/sql/__init__.py,sha256=WLWZJfqc8pr1N1BMVe9gM-KQ4URJIeKfLqTuJBD1VN0,107
|
|
46
|
-
dbt/adapters/sql/connections.py,sha256=
|
|
46
|
+
dbt/adapters/sql/connections.py,sha256=ASxZtpPoM_EtmD_nfG0z5F8pTO5YsWfUBV7QKqx4cec,6628
|
|
47
47
|
dbt/adapters/sql/impl.py,sha256=HmH3eC-qVeCAAukjEOnUNZbH-UK32X-NL4kwb_EHzs0,10763
|
|
48
48
|
dbt/include/__init__.py,sha256=qEFeq3yuf3lQKVseALmL8aPM8fpCS54B_5pry00M3hk,76
|
|
49
49
|
dbt/include/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -149,7 +149,7 @@ dbt/include/global_project/macros/utils/right.sql,sha256=EwNG98CAFIwNDmarwopf7Rk
|
|
|
149
149
|
dbt/include/global_project/macros/utils/safe_cast.sql,sha256=1mswwkDACmIi1I99JKb_-vq3kjMe4HhMRV70mW8Bt4Y,298
|
|
150
150
|
dbt/include/global_project/macros/utils/split_part.sql,sha256=fXEIS0oIiYR7-4lYbb0QbZdG-q2TpV63AFd1ky4I5UM,714
|
|
151
151
|
dbt/include/global_project/tests/generic/builtin.sql,sha256=p94xdyPwb2TlxgLBqCfrcRfJ1QNgsjPvBm8f0Q5eqZM,1022
|
|
152
|
-
dbt_adapters-1.3.
|
|
153
|
-
dbt_adapters-1.3.
|
|
154
|
-
dbt_adapters-1.3.
|
|
155
|
-
dbt_adapters-1.3.
|
|
152
|
+
dbt_adapters-1.3.2.dist-info/METADATA,sha256=-C2mKHGFDYKsM4WOK5FHnWXMhURUinnwCxRDFXTh_dY,2539
|
|
153
|
+
dbt_adapters-1.3.2.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
|
154
|
+
dbt_adapters-1.3.2.dist-info/licenses/LICENSE,sha256=9yjigiJhWcCZvQjdagGKDwrRph58QWc5P2bVSQwXo6s,11344
|
|
155
|
+
dbt_adapters-1.3.2.dist-info/RECORD,,
|
|
File without changes
|