sqlalchemy-cratedb 0.39.0__py3-none-any.whl → 0.40.1__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.
@@ -233,6 +233,30 @@ class CrateDialect(default.DefaultDialect):
233
233
  return self.dbapi.connect(servers=servers, **kwargs)
234
234
  return self.dbapi.connect(**kwargs)
235
235
 
236
+ def do_execute(self, cursor, statement, parameters, context=None):
237
+ """
238
+ Slightly amended to store its response into the request context instance.
239
+ """
240
+ result = cursor.execute(statement, parameters)
241
+ if context is not None:
242
+ context.last_result = result
243
+
244
+ def do_execute_no_params(self, cursor, statement, context=None):
245
+ """
246
+ Slightly amended to store its response into the request context instance.
247
+ """
248
+ result = cursor.execute(statement)
249
+ if context is not None:
250
+ context.last_result = result
251
+
252
+ def do_executemany(self, cursor, statement, parameters, context=None):
253
+ """
254
+ Slightly amended to store its response into the request context instance.
255
+ """
256
+ result = cursor.executemany(statement, parameters)
257
+ if context is not None:
258
+ context.last_result = result
259
+
236
260
  def _get_default_schema_name(self, connection):
237
261
  return "doc"
238
262
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sqlalchemy-cratedb
3
- Version: 0.39.0
3
+ Version: 0.40.1
4
4
  Summary: SQLAlchemy dialect for CrateDB.
5
5
  Author-email: "Crate.io" <office@crate.io>
6
6
  License: Apache License 2.0
@@ -33,6 +33,7 @@ Classifier: Programming Language :: Python :: 3.9
33
33
  Classifier: Programming Language :: Python :: 3.10
34
34
  Classifier: Programming Language :: Python :: 3.11
35
35
  Classifier: Programming Language :: Python :: 3.12
36
+ Classifier: Programming Language :: Python :: 3.13
36
37
  Classifier: Programming Language :: Python :: Implementation :: CPython
37
38
  Classifier: Programming Language :: Python :: Implementation :: PyPy
38
39
  Classifier: Programming Language :: SQL
@@ -62,7 +63,7 @@ Requires-Python: >=3.6
62
63
  Description-Content-Type: text/markdown
63
64
  License-File: LICENSE
64
65
  License-File: NOTICE
65
- Requires-Dist: crate ==1.0.0.dev0
66
+ Requires-Dist: crate <2,>=1.0.0.dev2
66
67
  Requires-Dist: geojson <4,>=2.5
67
68
  Requires-Dist: sqlalchemy <2.1,>=1
68
69
  Requires-Dist: verlib2 ==0.2
@@ -71,11 +72,11 @@ Requires-Dist: importlib-resources ; python_version < "3.9"
71
72
  Provides-Extra: all
72
73
  Requires-Dist: sqlalchemy-cratedb[vector] ; extra == 'all'
73
74
  Provides-Extra: develop
74
- Requires-Dist: mypy <1.12 ; extra == 'develop'
75
- Requires-Dist: poethepoet <0.28 ; extra == 'develop'
76
- Requires-Dist: pyproject-fmt <2.3 ; extra == 'develop'
77
- Requires-Dist: ruff <0.7 ; extra == 'develop'
78
- Requires-Dist: validate-pyproject <0.20 ; extra == 'develop'
75
+ Requires-Dist: mypy <1.14 ; extra == 'develop'
76
+ Requires-Dist: poethepoet <0.30 ; extra == 'develop'
77
+ Requires-Dist: pyproject-fmt <2.6 ; extra == 'develop'
78
+ Requires-Dist: ruff <0.8 ; extra == 'develop'
79
+ Requires-Dist: validate-pyproject <0.23 ; extra == 'develop'
79
80
  Provides-Extra: doc
80
81
  Requires-Dist: crate-docs-theme >=0.26.5 ; extra == 'doc'
81
82
  Requires-Dist: sphinx <9,>=3.5 ; extra == 'doc'
@@ -84,12 +85,12 @@ Requires-Dist: build <2 ; extra == 'release'
84
85
  Requires-Dist: twine <6 ; extra == 'release'
85
86
  Provides-Extra: test
86
87
  Requires-Dist: cratedb-toolkit[testing] ; extra == 'test'
87
- Requires-Dist: dask[dataframe] ; extra == 'test'
88
88
  Requires-Dist: pandas <2.3 ; extra == 'test'
89
89
  Requires-Dist: pueblo >=0.0.7 ; extra == 'test'
90
90
  Requires-Dist: pytest <9 ; extra == 'test'
91
- Requires-Dist: pytest-cov <6 ; extra == 'test'
91
+ Requires-Dist: pytest-cov <7 ; extra == 'test'
92
92
  Requires-Dist: pytest-mock <4 ; extra == 'test'
93
+ Requires-Dist: dask[dataframe] ; (python_version < "3.13") and extra == 'test'
93
94
  Provides-Extra: vector
94
95
  Requires-Dist: numpy ; extra == 'vector'
95
96
 
@@ -1,6 +1,6 @@
1
1
  sqlalchemy_cratedb/__init__.py,sha256=1W1uYA3Ax7HJTQatj6UulvPEmetUICEx_S7C2bmp76Q,2326
2
2
  sqlalchemy_cratedb/compiler.py,sha256=QoR0Kvn5d7BjRAq_y_DvIaInlajZsJfklvA2SJLhzBw,13147
3
- sqlalchemy_cratedb/dialect.py,sha256=bboBk3d444a3C17j2hjUy6bOoLSCqnTUPLbC3-qY-dI,14131
3
+ sqlalchemy_cratedb/dialect.py,sha256=QED0DDy5AEePnwvHBwZZ4d82p8h0lndBxFBvR6OpRn0,15043
4
4
  sqlalchemy_cratedb/predicate.py,sha256=mUIHwGv9tuNmN_BqRD5LC5Ll3Lxpb4WI_muZqbP6HRs,3568
5
5
  sqlalchemy_cratedb/sa_version.py,sha256=sQtmUQEJcguJRRSlbkVpYcdEzPduA-sUHtmOtWSH8qI,1168
6
6
  sqlalchemy_cratedb/compat/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -17,10 +17,10 @@ sqlalchemy_cratedb/type/array.py,sha256=X-GXAtyysya3Esoe-Rh692ySBskvKd_xf30pu9x3
17
17
  sqlalchemy_cratedb/type/geo.py,sha256=8Z81m8wtpb0TBdSy_3v5FeXd0MTGZD3LxVguf9PzCZA,1160
18
18
  sqlalchemy_cratedb/type/object.py,sha256=aAkmr55RYZUbJ2MVUDV1-5eQ7kKuATVy6oy2OFqmibU,3015
19
19
  sqlalchemy_cratedb/type/vector.py,sha256=g8_C-ObDWEBoGz7u5QdljDCRWYNSRVafCAsmWJSxXiE,4746
20
- sqlalchemy_cratedb-0.39.0.dist-info/LICENSE,sha256=s_w3FXmAYQuatqsgvyYLnGyC_13KOqp3W1DUEXO9RpY,10175
21
- sqlalchemy_cratedb-0.39.0.dist-info/METADATA,sha256=2YqzJI6s6PMnskd_J1wgOCK6r-nhgk56jf31KzlAO08,6540
22
- sqlalchemy_cratedb-0.39.0.dist-info/NOTICE,sha256=yU9CWOf_XrVU7fpqGgM9tDjppoMyfHHBmFVMiINZk-k,1167
23
- sqlalchemy_cratedb-0.39.0.dist-info/WHEEL,sha256=UvcQYKBHoFqaQd6LKyqHw9fxEolWLQnlzP0h_LgJAfI,91
24
- sqlalchemy_cratedb-0.39.0.dist-info/entry_points.txt,sha256=c14wyCG3OeM64_DUbI_vLVUXR3e3GhDyO_PCjo6UQMU,57
25
- sqlalchemy_cratedb-0.39.0.dist-info/top_level.txt,sha256=UjjXz0burl_-2MApzLzffHG_2RXm6KljZvoGJHISMPo,19
26
- sqlalchemy_cratedb-0.39.0.dist-info/RECORD,,
20
+ sqlalchemy_cratedb-0.40.1.dist-info/LICENSE,sha256=s_w3FXmAYQuatqsgvyYLnGyC_13KOqp3W1DUEXO9RpY,10175
21
+ sqlalchemy_cratedb-0.40.1.dist-info/METADATA,sha256=IMfPGUxCmRjbpAdrKs0YbmUNZOPDSCgBCx-llvvXOAc,6624
22
+ sqlalchemy_cratedb-0.40.1.dist-info/NOTICE,sha256=yU9CWOf_XrVU7fpqGgM9tDjppoMyfHHBmFVMiINZk-k,1167
23
+ sqlalchemy_cratedb-0.40.1.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
24
+ sqlalchemy_cratedb-0.40.1.dist-info/entry_points.txt,sha256=c14wyCG3OeM64_DUbI_vLVUXR3e3GhDyO_PCjo6UQMU,57
25
+ sqlalchemy_cratedb-0.40.1.dist-info/top_level.txt,sha256=UjjXz0burl_-2MApzLzffHG_2RXm6KljZvoGJHISMPo,19
26
+ sqlalchemy_cratedb-0.40.1.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (74.0.0)
2
+ Generator: setuptools (75.3.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5