sqlalchemy-cratedb 0.39.0__tar.gz → 0.40.0__tar.gz
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.
- {sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/CHANGES.md +7 -1
- {sqlalchemy_cratedb-0.39.0/src/sqlalchemy_cratedb.egg-info → sqlalchemy_cratedb-0.40.0}/PKG-INFO +4 -4
- {sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/pyproject.toml +3 -3
- {sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/src/sqlalchemy_cratedb/dialect.py +24 -0
- {sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0/src/sqlalchemy_cratedb.egg-info}/PKG-INFO +4 -4
- {sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/src/sqlalchemy_cratedb.egg-info/SOURCES.txt +1 -0
- {sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/src/sqlalchemy_cratedb.egg-info/requires.txt +3 -3
- sqlalchemy_cratedb-0.40.0/tests/test_error_handling.py +21 -0
- {sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/CODE_OF_CONDUCT.md +0 -0
- {sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/CONTRIBUTING.md +0 -0
- {sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/DEVELOP.md +0 -0
- {sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/LICENSE +0 -0
- {sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/MANIFEST.in +0 -0
- {sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/NOTICE +0 -0
- {sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/README.md +0 -0
- {sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/backlog.md +0 -0
- {sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/docs/_extra/robots.txt +0 -0
- {sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/docs/requirements.txt +0 -0
- {sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/setup.cfg +0 -0
- {sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/setup.py +0 -0
- {sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/src/sqlalchemy_cratedb/__init__.py +0 -0
- {sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/src/sqlalchemy_cratedb/compat/__init__.py +0 -0
- {sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/src/sqlalchemy_cratedb/compat/api13.py +0 -0
- {sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/src/sqlalchemy_cratedb/compat/core10.py +0 -0
- {sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/src/sqlalchemy_cratedb/compat/core14.py +0 -0
- {sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/src/sqlalchemy_cratedb/compat/core20.py +0 -0
- {sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/src/sqlalchemy_cratedb/compiler.py +0 -0
- {sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/src/sqlalchemy_cratedb/predicate.py +0 -0
- {sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/src/sqlalchemy_cratedb/sa_version.py +0 -0
- {sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/src/sqlalchemy_cratedb/support/__init__.py +0 -0
- {sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/src/sqlalchemy_cratedb/support/pandas.py +0 -0
- {sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/src/sqlalchemy_cratedb/support/polyfill.py +0 -0
- {sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/src/sqlalchemy_cratedb/support/util.py +0 -0
- {sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/src/sqlalchemy_cratedb/type/__init__.py +0 -0
- {sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/src/sqlalchemy_cratedb/type/array.py +0 -0
- {sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/src/sqlalchemy_cratedb/type/geo.py +0 -0
- {sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/src/sqlalchemy_cratedb/type/object.py +0 -0
- {sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/src/sqlalchemy_cratedb/type/vector.py +0 -0
- {sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/src/sqlalchemy_cratedb.egg-info/dependency_links.txt +0 -0
- {sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/src/sqlalchemy_cratedb.egg-info/entry_points.txt +0 -0
- {sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/src/sqlalchemy_cratedb.egg-info/top_level.txt +0 -0
- {sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/tests/test_schema.py +0 -0
- {sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/tests/test_support_pandas.py +0 -0
- {sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/tests/test_support_polyfill.py +0 -0
- {sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/tests/test_support_util.py +0 -0
@@ -2,8 +2,14 @@
|
|
2
2
|
|
3
3
|
## Unreleased
|
4
4
|
|
5
|
+
## 2024/10/07 0.40.0
|
6
|
+
- Propagate error traces properly, using the `error_trace` `connect_args` option,
|
7
|
+
by using `crate-1.0.0dev1`
|
8
|
+
- Use slightly amended `do_execute`, `do_execute_no_params`, `do_executemany`
|
9
|
+
to store their responses into the request context instance
|
10
|
+
|
5
11
|
## 2024/08/29 0.39.0
|
6
|
-
Added `quote_relation_name` support utility function
|
12
|
+
- Added `quote_relation_name` support utility function
|
7
13
|
|
8
14
|
## 2024/06/25 0.38.0
|
9
15
|
- Added/reactivated documentation as `sqlalchemy-cratedb`
|
{sqlalchemy_cratedb-0.39.0/src/sqlalchemy_cratedb.egg-info → sqlalchemy_cratedb-0.40.0}/PKG-INFO
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: sqlalchemy-cratedb
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.40.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,7 +63,7 @@ Description-Content-Type: text/markdown
|
|
63
63
|
License-File: LICENSE
|
64
64
|
License-File: NOTICE
|
65
65
|
Requires-Dist: backports.zoneinfo<1; python_version < "3.9"
|
66
|
-
Requires-Dist: crate==1.0.0.
|
66
|
+
Requires-Dist: crate==1.0.0.dev1
|
67
67
|
Requires-Dist: geojson<4,>=2.5
|
68
68
|
Requires-Dist: importlib-resources; python_version < "3.9"
|
69
69
|
Requires-Dist: sqlalchemy<2.1,>=1
|
@@ -72,10 +72,10 @@ Provides-Extra: all
|
|
72
72
|
Requires-Dist: sqlalchemy-cratedb[vector]; extra == "all"
|
73
73
|
Provides-Extra: develop
|
74
74
|
Requires-Dist: mypy<1.12; extra == "develop"
|
75
|
-
Requires-Dist: poethepoet<0.
|
75
|
+
Requires-Dist: poethepoet<0.30; extra == "develop"
|
76
76
|
Requires-Dist: pyproject-fmt<2.3; extra == "develop"
|
77
77
|
Requires-Dist: ruff<0.7; extra == "develop"
|
78
|
-
Requires-Dist: validate-pyproject<0.
|
78
|
+
Requires-Dist: validate-pyproject<0.21; extra == "develop"
|
79
79
|
Provides-Extra: doc
|
80
80
|
Requires-Dist: crate-docs-theme>=0.26.5; extra == "doc"
|
81
81
|
Requires-Dist: sphinx<9,>=3.5; extra == "doc"
|
@@ -81,7 +81,7 @@ dynamic = [
|
|
81
81
|
]
|
82
82
|
dependencies = [
|
83
83
|
"backports.zoneinfo<1; python_version<'3.9'",
|
84
|
-
"crate==1.0.0.
|
84
|
+
"crate==1.0.0.dev1",
|
85
85
|
"geojson<4,>=2.5",
|
86
86
|
"importlib-resources; python_version<'3.9'",
|
87
87
|
"sqlalchemy<2.1,>=1",
|
@@ -92,10 +92,10 @@ optional-dependencies.all = [
|
|
92
92
|
]
|
93
93
|
optional-dependencies.develop = [
|
94
94
|
"mypy<1.12",
|
95
|
-
"poethepoet<0.
|
95
|
+
"poethepoet<0.30",
|
96
96
|
"pyproject-fmt<2.3",
|
97
97
|
"ruff<0.7",
|
98
|
-
"validate-pyproject<0.
|
98
|
+
"validate-pyproject<0.21",
|
99
99
|
]
|
100
100
|
optional-dependencies.doc = [
|
101
101
|
"crate-docs-theme>=0.26.5",
|
@@ -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
|
|
{sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0/src/sqlalchemy_cratedb.egg-info}/PKG-INFO
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: sqlalchemy-cratedb
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.40.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,7 +63,7 @@ Description-Content-Type: text/markdown
|
|
63
63
|
License-File: LICENSE
|
64
64
|
License-File: NOTICE
|
65
65
|
Requires-Dist: backports.zoneinfo<1; python_version < "3.9"
|
66
|
-
Requires-Dist: crate==1.0.0.
|
66
|
+
Requires-Dist: crate==1.0.0.dev1
|
67
67
|
Requires-Dist: geojson<4,>=2.5
|
68
68
|
Requires-Dist: importlib-resources; python_version < "3.9"
|
69
69
|
Requires-Dist: sqlalchemy<2.1,>=1
|
@@ -72,10 +72,10 @@ Provides-Extra: all
|
|
72
72
|
Requires-Dist: sqlalchemy-cratedb[vector]; extra == "all"
|
73
73
|
Provides-Extra: develop
|
74
74
|
Requires-Dist: mypy<1.12; extra == "develop"
|
75
|
-
Requires-Dist: poethepoet<0.
|
75
|
+
Requires-Dist: poethepoet<0.30; extra == "develop"
|
76
76
|
Requires-Dist: pyproject-fmt<2.3; extra == "develop"
|
77
77
|
Requires-Dist: ruff<0.7; extra == "develop"
|
78
|
-
Requires-Dist: validate-pyproject<0.
|
78
|
+
Requires-Dist: validate-pyproject<0.21; extra == "develop"
|
79
79
|
Provides-Extra: doc
|
80
80
|
Requires-Dist: crate-docs-theme>=0.26.5; extra == "doc"
|
81
81
|
Requires-Dist: sphinx<9,>=3.5; extra == "doc"
|
{sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/src/sqlalchemy_cratedb.egg-info/SOURCES.txt
RENAMED
@@ -37,6 +37,7 @@ src/sqlalchemy_cratedb/type/array.py
|
|
37
37
|
src/sqlalchemy_cratedb/type/geo.py
|
38
38
|
src/sqlalchemy_cratedb/type/object.py
|
39
39
|
src/sqlalchemy_cratedb/type/vector.py
|
40
|
+
tests/test_error_handling.py
|
40
41
|
tests/test_schema.py
|
41
42
|
tests/test_support_pandas.py
|
42
43
|
tests/test_support_polyfill.py
|
{sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/src/sqlalchemy_cratedb.egg-info/requires.txt
RENAMED
@@ -1,4 +1,4 @@
|
|
1
|
-
crate==1.0.0.
|
1
|
+
crate==1.0.0.dev1
|
2
2
|
geojson<4,>=2.5
|
3
3
|
sqlalchemy<2.1,>=1
|
4
4
|
verlib2==0.2
|
@@ -12,10 +12,10 @@ sqlalchemy-cratedb[vector]
|
|
12
12
|
|
13
13
|
[develop]
|
14
14
|
mypy<1.12
|
15
|
-
poethepoet<0.
|
15
|
+
poethepoet<0.30
|
16
16
|
pyproject-fmt<2.3
|
17
17
|
ruff<0.7
|
18
|
-
validate-pyproject<0.
|
18
|
+
validate-pyproject<0.21
|
19
19
|
|
20
20
|
[doc]
|
21
21
|
crate-docs-theme>=0.26.5
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import re
|
2
|
+
|
3
|
+
import pytest
|
4
|
+
import sqlalchemy as sa
|
5
|
+
|
6
|
+
|
7
|
+
def test_statement_with_error_trace(cratedb_service):
|
8
|
+
"""
|
9
|
+
Verify that the `error_trace` option works correctly.
|
10
|
+
"""
|
11
|
+
engine = sa.create_engine(cratedb_service.database.dburi, connect_args={"error_trace": True})
|
12
|
+
with engine.connect() as connection:
|
13
|
+
with pytest.raises(sa.exc.ProgrammingError) as ex:
|
14
|
+
connection.execute(sa.text("CREATE TABLE foo AS SELECT 1 AS _foo"))
|
15
|
+
assert ex.match(
|
16
|
+
re.escape('InvalidColumnNameException["_foo" conflicts with system column pattern]')
|
17
|
+
)
|
18
|
+
assert ex.match(
|
19
|
+
"io.crate.exceptions.InvalidColumnNameException: "
|
20
|
+
'"_foo" conflicts with system column pattern'
|
21
|
+
)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/src/sqlalchemy_cratedb/compat/__init__.py
RENAMED
File without changes
|
{sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/src/sqlalchemy_cratedb/compat/api13.py
RENAMED
File without changes
|
{sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/src/sqlalchemy_cratedb/compat/core10.py
RENAMED
File without changes
|
{sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/src/sqlalchemy_cratedb/compat/core14.py
RENAMED
File without changes
|
{sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/src/sqlalchemy_cratedb/compat/core20.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/src/sqlalchemy_cratedb/sa_version.py
RENAMED
File without changes
|
{sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/src/sqlalchemy_cratedb/support/__init__.py
RENAMED
File without changes
|
{sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/src/sqlalchemy_cratedb/support/pandas.py
RENAMED
File without changes
|
{sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/src/sqlalchemy_cratedb/support/polyfill.py
RENAMED
File without changes
|
{sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/src/sqlalchemy_cratedb/support/util.py
RENAMED
File without changes
|
{sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/src/sqlalchemy_cratedb/type/__init__.py
RENAMED
File without changes
|
{sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/src/sqlalchemy_cratedb/type/array.py
RENAMED
File without changes
|
File without changes
|
{sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/src/sqlalchemy_cratedb/type/object.py
RENAMED
File without changes
|
{sqlalchemy_cratedb-0.39.0 → sqlalchemy_cratedb-0.40.0}/src/sqlalchemy_cratedb/type/vector.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|