sqlalchemy-cratedb 0.40.1__py3-none-any.whl → 0.41.0__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.
@@ -71,7 +71,7 @@ def exec_driver_sql(self, statement, parameters=None, execution_options=None):
71
71
  """
72
72
  if execution_options is not None:
73
73
  raise ValueError(
74
- "SA13 backward-compatibility: " "`exec_driver_sql` does not support `execution_options`"
74
+ "SA13 backward-compatibility: `exec_driver_sql` does not support `execution_options`"
75
75
  )
76
76
  args_10style, kwargs_10style = _distill_params_20(parameters)
77
77
  return self.execute(statement, *args_10style, **kwargs_10style)
@@ -106,7 +106,7 @@ def select_sa14(*columns, **kw) -> Select:
106
106
  if isinstance(columns, tuple) and isinstance(columns[0], list):
107
107
  if "whereclause" in kw:
108
108
  raise ValueError(
109
- "SA13 backward-compatibility: " "`whereclause` is both in kwargs and columns tuple"
109
+ "SA13 backward-compatibility: `whereclause` is both in kwargs and columns tuple"
110
110
  )
111
111
  columns, whereclause = columns
112
112
  kw["whereclause"] = whereclause
@@ -19,7 +19,7 @@
19
19
  # with Crate these terms will supersede the license and you may use the
20
20
  # software solely pursuant to the terms of the relevant commercial agreement.
21
21
 
22
- # ruff: noqa: S101 Use of `assert` detected
22
+ # ruff: noqa: S101 # Use of `assert` detected
23
23
 
24
24
  from typing import Any, Dict, List, MutableMapping, Optional, Tuple, Union
25
25
 
@@ -232,8 +232,7 @@ def _get_crud_params(
232
232
 
233
233
  if stmt._returning and stmt._return_defaults:
234
234
  raise exc.CompileError(
235
- "Can't compile statement that includes returning() and "
236
- "return_defaults() simultaneously"
235
+ "Can't compile statement that includes returning() and return_defaults() simultaneously"
237
236
  )
238
237
 
239
238
  if compile_state.isdelete:
@@ -146,7 +146,7 @@ class CrateDDLCompiler(compiler.DDLCompiler):
146
146
  def visit_computed_column(self, generated):
147
147
  if generated.persisted is False:
148
148
  raise sa.exc.CompileError(
149
- "Virtual computed columns are not supported, set " "'persisted' to None or True"
149
+ "Virtual computed columns are not supported, set 'persisted' to None or True"
150
150
  )
151
151
 
152
152
  return "GENERATED ALWAYS AS (%s)" % self.sql_compiler.process(
@@ -291,7 +291,7 @@ class CrateDialect(default.DefaultDialect):
291
291
  @reflection.cache
292
292
  def get_schema_names(self, connection, **kw):
293
293
  cursor = connection.exec_driver_sql(
294
- "select schema_name " "from information_schema.schemata " "order by schema_name asc"
294
+ "select schema_name from information_schema.schemata order by schema_name asc"
295
295
  )
296
296
  return [row[0] for row in cursor.fetchall()]
297
297
 
@@ -19,6 +19,8 @@
19
19
  # with Crate these terms will supersede the license and you may use the
20
20
  # software solely pursuant to the terms of the relevant commercial agreement.
21
21
 
22
+ # ruff: noqa: A005 # Module `array` shadows a Python standard-library module
23
+
22
24
  import sqlalchemy.types as sqltypes
23
25
  from sqlalchemy.ext.mutable import Mutable
24
26
  from sqlalchemy.sql import default_comparator, expression, operators
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: sqlalchemy-cratedb
3
- Version: 0.40.1
3
+ Version: 0.41.0
4
4
  Summary: SQLAlchemy dialect for CrateDB.
5
5
  Author-email: "Crate.io" <office@crate.io>
6
6
  License: Apache License 2.0
@@ -63,36 +63,36 @@ Requires-Python: >=3.6
63
63
  Description-Content-Type: text/markdown
64
64
  License-File: LICENSE
65
65
  License-File: NOTICE
66
- Requires-Dist: crate <2,>=1.0.0.dev2
67
- Requires-Dist: geojson <4,>=2.5
68
- Requires-Dist: sqlalchemy <2.1,>=1
69
- Requires-Dist: verlib2 ==0.2
70
- Requires-Dist: backports.zoneinfo <1 ; python_version < "3.9"
71
- Requires-Dist: importlib-resources ; python_version < "3.9"
66
+ Requires-Dist: backports.zoneinfo<1; python_version < "3.9"
67
+ Requires-Dist: crate<3,>=2
68
+ Requires-Dist: geojson<4,>=2.5
69
+ Requires-Dist: importlib-resources; python_version < "3.9"
70
+ Requires-Dist: sqlalchemy<2.1,>=1
71
+ Requires-Dist: verlib2==0.2
72
72
  Provides-Extra: all
73
- Requires-Dist: sqlalchemy-cratedb[vector] ; extra == 'all'
73
+ Requires-Dist: sqlalchemy-cratedb[vector]; extra == "all"
74
74
  Provides-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'
75
+ Requires-Dist: mypy<1.15; extra == "develop"
76
+ Requires-Dist: poethepoet<0.33; extra == "develop"
77
+ Requires-Dist: pyproject-fmt<2.6; extra == "develop"
78
+ Requires-Dist: ruff<0.10; extra == "develop"
79
+ Requires-Dist: validate-pyproject<0.24; extra == "develop"
80
80
  Provides-Extra: doc
81
- Requires-Dist: crate-docs-theme >=0.26.5 ; extra == 'doc'
82
- Requires-Dist: sphinx <9,>=3.5 ; extra == 'doc'
81
+ Requires-Dist: crate-docs-theme>=0.26.5; extra == "doc"
82
+ Requires-Dist: sphinx<9,>=3.5; extra == "doc"
83
83
  Provides-Extra: release
84
- Requires-Dist: build <2 ; extra == 'release'
85
- Requires-Dist: twine <6 ; extra == 'release'
84
+ Requires-Dist: build<2; extra == "release"
85
+ Requires-Dist: twine<7; extra == "release"
86
86
  Provides-Extra: test
87
- Requires-Dist: cratedb-toolkit[testing] ; extra == 'test'
88
- Requires-Dist: pandas <2.3 ; extra == 'test'
89
- Requires-Dist: pueblo >=0.0.7 ; extra == 'test'
90
- Requires-Dist: pytest <9 ; extra == 'test'
91
- Requires-Dist: pytest-cov <7 ; extra == 'test'
92
- Requires-Dist: pytest-mock <4 ; extra == 'test'
93
- Requires-Dist: dask[dataframe] ; (python_version < "3.13") and extra == 'test'
87
+ Requires-Dist: cratedb-toolkit[testing]; extra == "test"
88
+ Requires-Dist: dask[dataframe]; python_version < "3.13" and extra == "test"
89
+ Requires-Dist: pandas<2.3; extra == "test"
90
+ Requires-Dist: pueblo>=0.0.7; extra == "test"
91
+ Requires-Dist: pytest<9; extra == "test"
92
+ Requires-Dist: pytest-cov<7; extra == "test"
93
+ Requires-Dist: pytest-mock<4; extra == "test"
94
94
  Provides-Extra: vector
95
- Requires-Dist: numpy ; extra == 'vector'
95
+ Requires-Dist: numpy; extra == "vector"
96
96
 
97
97
  # SQLAlchemy dialect for CrateDB
98
98
 
@@ -1,26 +1,26 @@
1
1
  sqlalchemy_cratedb/__init__.py,sha256=1W1uYA3Ax7HJTQatj6UulvPEmetUICEx_S7C2bmp76Q,2326
2
- sqlalchemy_cratedb/compiler.py,sha256=QoR0Kvn5d7BjRAq_y_DvIaInlajZsJfklvA2SJLhzBw,13147
3
- sqlalchemy_cratedb/dialect.py,sha256=QED0DDy5AEePnwvHBwZZ4d82p8h0lndBxFBvR6OpRn0,15043
2
+ sqlalchemy_cratedb/compiler.py,sha256=obD3DivOzy6i-ewMZz2Qaj9I8J7EkPPhFTAESqvtNsA,13144
3
+ sqlalchemy_cratedb/dialect.py,sha256=YEp5bYO6rfKM8rSXddaF40J0iz4bH6RurkBmly4tUpo,15037
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
7
- sqlalchemy_cratedb/compat/api13.py,sha256=4wGljuAx4PtZmXbf3iADvxDHxhKIeIHQeWIMG0e7_-M,5625
7
+ sqlalchemy_cratedb/compat/api13.py,sha256=cWgQxPuc47tOjWb4wvCAMBrOsrT9xJJffZqmdfyJA24,5619
8
8
  sqlalchemy_cratedb/compat/core10.py,sha256=VDugi9u4wr5tSoxyD8C9kPmxXgtik0avNPUPnSmP4DI,8191
9
9
  sqlalchemy_cratedb/compat/core14.py,sha256=qtL1UfvT7aZK2TafNi5KiXA1b0nO84PgoBMI0FgnXos,11144
10
- sqlalchemy_cratedb/compat/core20.py,sha256=E4NzFuXdadaQVGksPt5VWaMeHQxTXs1oqvDw6L2McnA,14687
10
+ sqlalchemy_cratedb/compat/core20.py,sha256=bKeAqSZH0qyK3Mj6qpj8x8IG2hcchVsGUvPW9xS7z_I,14675
11
11
  sqlalchemy_cratedb/support/__init__.py,sha256=zPXmiW2M5-yLZFfKZX78mZiL0T5MzD0IhUNEoRs9NuY,507
12
12
  sqlalchemy_cratedb/support/pandas.py,sha256=yt5re_PmiwEv7nMK1A2xIufXbmxUjWXP_06pH3V2qyg,4397
13
13
  sqlalchemy_cratedb/support/polyfill.py,sha256=yyqlXBvb6FfWpA3ChDF8XoiCImHsMD8NknZe4gTfvI0,5009
14
14
  sqlalchemy_cratedb/support/util.py,sha256=HjZpOy8uTqkMwUrFYsL3JEDgjmAVSqk4zYMJAyNhpEE,2442
15
15
  sqlalchemy_cratedb/type/__init__.py,sha256=qT3s2Dt83BPp0ZXCv5e1vHod7MKzDjVzSSV8Pcnl9JM,249
16
- sqlalchemy_cratedb/type/array.py,sha256=X-GXAtyysya3Esoe-Rh692ySBskvKd_xf30pu9x3oFk,4260
16
+ sqlalchemy_cratedb/type/array.py,sha256=N5tl_XrrTVhMOqHeDt0q4M0VOcQC_DSAkF3NlGDsXlc,4339
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.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,,
20
+ sqlalchemy_cratedb-0.41.0.dist-info/LICENSE,sha256=s_w3FXmAYQuatqsgvyYLnGyC_13KOqp3W1DUEXO9RpY,10175
21
+ sqlalchemy_cratedb-0.41.0.dist-info/METADATA,sha256=j031lpey_kEyRwtm60A-G22SRhdCha9KFwKQ3aAp9qs,6575
22
+ sqlalchemy_cratedb-0.41.0.dist-info/NOTICE,sha256=yU9CWOf_XrVU7fpqGgM9tDjppoMyfHHBmFVMiINZk-k,1167
23
+ sqlalchemy_cratedb-0.41.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
24
+ sqlalchemy_cratedb-0.41.0.dist-info/entry_points.txt,sha256=c14wyCG3OeM64_DUbI_vLVUXR3e3GhDyO_PCjo6UQMU,57
25
+ sqlalchemy_cratedb-0.41.0.dist-info/top_level.txt,sha256=UjjXz0burl_-2MApzLzffHG_2RXm6KljZvoGJHISMPo,19
26
+ sqlalchemy_cratedb-0.41.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.3.0)
2
+ Generator: setuptools (75.8.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5