mtsql 1.11.20__py3-none-any.whl → 1.12.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.
- mt/sql/redshift/__init__.py +0 -1
- mt/sql/redshift/dialect.py +10 -2
- mt/sql/version.py +2 -2
- {mtsql-1.11.20.dist-info → mtsql-1.12.1.dist-info}/METADATA +1 -1
- {mtsql-1.11.20.dist-info → mtsql-1.12.1.dist-info}/RECORD +8 -8
- {mtsql-1.11.20.dist-info → mtsql-1.12.1.dist-info}/LICENSE +0 -0
- {mtsql-1.11.20.dist-info → mtsql-1.12.1.dist-info}/WHEEL +0 -0
- {mtsql-1.11.20.dist-info → mtsql-1.12.1.dist-info}/top_level.txt +0 -0
mt/sql/redshift/__init__.py
CHANGED
mt/sql/redshift/dialect.py
CHANGED
|
@@ -1485,10 +1485,18 @@ class RedshiftDialect(RedshiftDialectMixin, PGDialect):
|
|
|
1485
1485
|
fns = []
|
|
1486
1486
|
|
|
1487
1487
|
def on_connect(conn):
|
|
1488
|
-
|
|
1488
|
+
if sa_version >= Version("2.0"):
|
|
1489
|
+
import redshift_connector
|
|
1490
|
+
|
|
1491
|
+
text_type = redshift_connector.pg_types.PGText
|
|
1492
|
+
else:
|
|
1493
|
+
from sqlalchemy import util
|
|
1494
|
+
|
|
1495
|
+
text_type = util.text_type
|
|
1496
|
+
|
|
1489
1497
|
from sqlalchemy.sql.elements import quoted_name
|
|
1490
1498
|
|
|
1491
|
-
conn.py_types[quoted_name] = conn.py_types[
|
|
1499
|
+
conn.py_types[quoted_name] = conn.py_types[text_type]
|
|
1492
1500
|
|
|
1493
1501
|
fns.append(on_connect)
|
|
1494
1502
|
|
mt/sql/version.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: mtsql
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.12.1
|
|
4
4
|
Summary: Extra Python modules to deal with the interaction between pandas dataframes and remote SQL servers, for Minh-Tri Pham
|
|
5
5
|
Home-page: https://github.com/inteplus/mtsql
|
|
6
6
|
Author: ['Minh-Tri Pham']
|
|
@@ -3,15 +3,15 @@ mt/sql/base.py,sha256=9aTVudlH9_HEq_v7uHV6p6asDuxMidQwAlCRSXDofvY,11967
|
|
|
3
3
|
mt/sql/mysql.py,sha256=n2ENDctdUqZuSaDAcrqZYtPtawq3Wx4dOPCRsCB5Q4w,4894
|
|
4
4
|
mt/sql/psql.py,sha256=AmXdDVRbvzK7hWK8kysrdiXkAUwSdWmh_OqlWdoNOig,66578
|
|
5
5
|
mt/sql/sqlite.py,sha256=T2ak_hhNi_zRfpg_gp8JhNHn7D2kl4i-Ey6-9ANMtz0,8678
|
|
6
|
-
mt/sql/version.py,sha256
|
|
7
|
-
mt/sql/redshift/__init__.py,sha256=
|
|
6
|
+
mt/sql/version.py,sha256=-q4oxGkS9ZZHpqo8DoKC1uqDCK8ehql4qBymCsAWstc,207
|
|
7
|
+
mt/sql/redshift/__init__.py,sha256=S-eRxJWcrvncF7LZXuulCdPV-UERu9eiw6uyDb5aGsM,443
|
|
8
8
|
mt/sql/redshift/commands.py,sha256=aAxCsp0Nl-RoWAhdTjzuE32Os_H3e_MdNOj12mt47qs,40187
|
|
9
9
|
mt/sql/redshift/ddl.py,sha256=eUcZj9oIajiE1wKKBAP-V64gYJ7cVnSAt8dLFfluOJA,9777
|
|
10
|
-
mt/sql/redshift/dialect.py,sha256=
|
|
10
|
+
mt/sql/redshift/dialect.py,sha256=gSXSDT6Iu_ERql5GfLWjnmqz-aTdBJJZgdFipRntyLc,53440
|
|
11
11
|
mt/sql/redshift/main.py,sha256=6dwnwNJ1F0_V9o2oqrSOkyN_pAMrgE01CCoqAjoyOME,17116
|
|
12
12
|
mt/sql/redshift/redshift-ca-bundle.crt,sha256=532qYkOpQOstFE0mdXE1GVtL3v00XDKgZNTr6gK5-KE,8621
|
|
13
|
-
mtsql-1.
|
|
14
|
-
mtsql-1.
|
|
15
|
-
mtsql-1.
|
|
16
|
-
mtsql-1.
|
|
17
|
-
mtsql-1.
|
|
13
|
+
mtsql-1.12.1.dist-info/LICENSE,sha256=PojkRlQzTT5Eg6Nj03XoIVEefN3u8iiIFf1p4rqe_t4,1070
|
|
14
|
+
mtsql-1.12.1.dist-info/METADATA,sha256=gvym17zV4H-BID3FpXR9Aza9DR8Cl3YIEqAbRvM7FQQ,715
|
|
15
|
+
mtsql-1.12.1.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
16
|
+
mtsql-1.12.1.dist-info/top_level.txt,sha256=WcqGFu9cV7iMZg09iam8eNxUvGpLSKKF2Iubf6SJVOo,3
|
|
17
|
+
mtsql-1.12.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|