sqlalchemy-iris 0.15.2b1__py3-none-any.whl → 0.15.3__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.
- intersystems_iris/dbapi/_DBAPI.py +2 -1
- sqlalchemy_iris/alembic.py +7 -0
- sqlalchemy_iris/base.py +11 -0
- {sqlalchemy_iris-0.15.2b1.dist-info → sqlalchemy_iris-0.15.3.dist-info}/METADATA +1 -1
- {sqlalchemy_iris-0.15.2b1.dist-info → sqlalchemy_iris-0.15.3.dist-info}/RECORD +9 -9
- {sqlalchemy_iris-0.15.2b1.dist-info → sqlalchemy_iris-0.15.3.dist-info}/LICENSE +0 -0
- {sqlalchemy_iris-0.15.2b1.dist-info → sqlalchemy_iris-0.15.3.dist-info}/WHEEL +0 -0
- {sqlalchemy_iris-0.15.2b1.dist-info → sqlalchemy_iris-0.15.3.dist-info}/entry_points.txt +0 -0
- {sqlalchemy_iris-0.15.2b1.dist-info → sqlalchemy_iris-0.15.3.dist-info}/top_level.txt +0 -0
@@ -1,3 +1,4 @@
|
|
1
|
+
from typing import Union
|
1
2
|
import struct
|
2
3
|
import copy
|
3
4
|
import enum
|
@@ -43,7 +44,7 @@ def embedded_connect(*args, hostname=None, port=None, namespace=None, username=N
|
|
43
44
|
return connection
|
44
45
|
|
45
46
|
|
46
|
-
def connect(*args, embedded=False, hostname=None, port=None, namespace=None, username=None, password=None, **kw) -> _IRISConnection
|
47
|
+
def connect(*args, embedded=False, hostname=None, port=None, namespace=None, username=None, password=None, **kw) -> Union[_IRISConnection, _IRISEmbedded]:
|
47
48
|
try:
|
48
49
|
if not embedded:
|
49
50
|
return native_connect(
|
sqlalchemy_iris/alembic.py
CHANGED
@@ -7,6 +7,7 @@ from typing import Any
|
|
7
7
|
from sqlalchemy.ext.compiler import compiles
|
8
8
|
from sqlalchemy.sql.base import Executable
|
9
9
|
from sqlalchemy.sql.elements import ClauseElement
|
10
|
+
from sqlalchemy.sql.schema import CheckConstraint
|
10
11
|
from sqlalchemy.sql.type_api import TypeEngine
|
11
12
|
from sqlalchemy.sql import table
|
12
13
|
from sqlalchemy import types
|
@@ -134,6 +135,12 @@ class IRISImpl(DefaultImpl):
|
|
134
135
|
**kw,
|
135
136
|
)
|
136
137
|
|
138
|
+
def add_constraint(self, const: Any) -> None:
|
139
|
+
if isinstance(const, CheckConstraint):
|
140
|
+
# just ignore it
|
141
|
+
return
|
142
|
+
super().add_constraint(const)
|
143
|
+
|
137
144
|
|
138
145
|
class _ExecDropForeignKey(Executable, ClauseElement):
|
139
146
|
inherit_cache = False
|
sqlalchemy_iris/base.py
CHANGED
@@ -591,6 +591,12 @@ class IRISCompiler(sql.compiler.SQLCompiler):
|
|
591
591
|
self.process(binary.right, **kw),
|
592
592
|
)
|
593
593
|
|
594
|
+
def visit_concat_func(
|
595
|
+
self, func, **kw
|
596
|
+
):
|
597
|
+
args = [self.process(clause, **kw) for clause in func.clauses.clauses]
|
598
|
+
return ' || '.join(args)
|
599
|
+
|
594
600
|
def visit_mod_binary(self, binary, operator, **kw):
|
595
601
|
return (
|
596
602
|
self.process(binary.left, **kw) + " # " + self.process(binary.right, **kw)
|
@@ -955,6 +961,11 @@ There are no access to %Dictionary, may be required for some advanced features,
|
|
955
961
|
return row[0]
|
956
962
|
return None
|
957
963
|
|
964
|
+
def get_isolation_level_values(self, dbapi_connection):
|
965
|
+
levels = set(self._isolation_lookup)
|
966
|
+
levels.add("AUTOCOMMIT")
|
967
|
+
return levels
|
968
|
+
|
958
969
|
def get_isolation_level(self, connection):
|
959
970
|
try:
|
960
971
|
level = int(self._get_option(connection, "IsolationMode"))
|
@@ -33,7 +33,7 @@ intersystems_iris/_SharedMemorySocket.py,sha256=2iUaS1FdJNSCUEaE-VT0O_dxF6NRwqZS
|
|
33
33
|
intersystems_iris/__init__.py,sha256=Tk1tD28LwvF6X3yXQsJFLE1Bc-PR3gUJWcX5UnNYOdY,1773
|
34
34
|
intersystems_iris/__main__.py,sha256=rCtINTfJcADMAsw1ja-MEO7Q-XekrWthYowzWV8xGIQ,218
|
35
35
|
intersystems_iris/dbapi/_Column.py,sha256=VCLHLXs3wuGcUa9w_qy7HBFsuGvhmmI3kGYBagQg59U,2535
|
36
|
-
intersystems_iris/dbapi/_DBAPI.py,sha256=
|
36
|
+
intersystems_iris/dbapi/_DBAPI.py,sha256=PZWhstxBQMw6X6AFL0IObvTzY9bJEl6u93keCrNGRmA,103103
|
37
37
|
intersystems_iris/dbapi/_Descriptor.py,sha256=IjyITxvjygDrhpk-0lGhdqQPh91SG6nTb1vi-AqyJNI,1391
|
38
38
|
intersystems_iris/dbapi/_IRISStream.py,sha256=dGJntWo4HXgM1nUHZl2hA4xHkBFEU2xkoEplVDFWhnA,2115
|
39
39
|
intersystems_iris/dbapi/_Message.py,sha256=jpLG3HZElqp981iNPFW8UNRO3NbHf6poEv6yywX0Ssw,4076
|
@@ -68,8 +68,8 @@ iris/iris_ipm.pyi,sha256=j7CNUZcjeDu5sgeWUZJO_Qi4vQmHh6aD-jPWv8OdoUs,374
|
|
68
68
|
irisnative/_IRISNative.py,sha256=HQ4nBhc8t8_5OtxdMG-kx1aa-T1znf2I8obZOPLOPzg,665
|
69
69
|
irisnative/__init__.py,sha256=6YmvBLQSURsCPKaNg7LK-xpo4ipDjrlhKuwdfdNb3Kg,341
|
70
70
|
sqlalchemy_iris/__init__.py,sha256=2bckDQ0AJJ9DfuAc20VVQNiK-YBhpYJMdo_C0qJwPHQ,1183
|
71
|
-
sqlalchemy_iris/alembic.py,sha256=
|
72
|
-
sqlalchemy_iris/base.py,sha256=
|
71
|
+
sqlalchemy_iris/alembic.py,sha256=L58qBIj6HwLmtU6FS5RXKW0gHr1mNTrBSChEllSh1n0,6607
|
72
|
+
sqlalchemy_iris/base.py,sha256=VdOkTuoJuvCQj4ypAsgdrtzugJC5a4kCbbjQsXBizss,52391
|
73
73
|
sqlalchemy_iris/embedded.py,sha256=5WZ78PIYB_pPyaLrK4E7kHUsGBRiwzYHjsTDiNYHUGg,819
|
74
74
|
sqlalchemy_iris/information_schema.py,sha256=Ei1gAHXn4fWpvmUzwf-2hGslU458uQXFt1s0r1NAj2Y,6132
|
75
75
|
sqlalchemy_iris/iris.py,sha256=Of0Ruc9W2c5ll5sjAy1xRo4tf1m0l_ab0vAdacTv3Yw,276
|
@@ -77,9 +77,9 @@ sqlalchemy_iris/irisasync.py,sha256=7Kmso-RGjxQi9Y4x-zQaUk1ylDQ7TDvpvlZh_syJtGw,
|
|
77
77
|
sqlalchemy_iris/provision.py,sha256=drorbIgNO770Ws0XiCRXY_sDbQGIy2_zzNK3KYrDetY,198
|
78
78
|
sqlalchemy_iris/requirements.py,sha256=2MPADPOk3qvXCyr7xXvkl_MfkE8v75Z3yGJO0RbzRog,7560
|
79
79
|
sqlalchemy_iris/types.py,sha256=VUt2iiZms8sJiee6hY_L8FLM5UeOgN3zNFMms-gOpN4,11077
|
80
|
-
sqlalchemy_iris-0.15.
|
81
|
-
sqlalchemy_iris-0.15.
|
82
|
-
sqlalchemy_iris-0.15.
|
83
|
-
sqlalchemy_iris-0.15.
|
84
|
-
sqlalchemy_iris-0.15.
|
85
|
-
sqlalchemy_iris-0.15.
|
80
|
+
sqlalchemy_iris-0.15.3.dist-info/LICENSE,sha256=RQmigqltsLq8lfOBc_KwtL0gkODyUCNpU-0ZiZwGlho,1075
|
81
|
+
sqlalchemy_iris-0.15.3.dist-info/METADATA,sha256=eSlBtq7oD938paLiynB2GaNl1EN6TVZneKbQslwI0l8,2355
|
82
|
+
sqlalchemy_iris-0.15.3.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
|
83
|
+
sqlalchemy_iris-0.15.3.dist-info/entry_points.txt,sha256=zjOwyJPXHsNAeQP0n6l2_pav2U__rTAiS_Bk_IEmSlU,184
|
84
|
+
sqlalchemy_iris-0.15.3.dist-info/top_level.txt,sha256=mjpHqFjekbB1TWr3xI3o4AqN3Spby-_uqyuSSeBDmuw,50
|
85
|
+
sqlalchemy_iris-0.15.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|