mtsql 1.12.0__py3-none-any.whl → 1.12.2__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 +12 -4
- mt/sql/version.py +1 -1
- {mtsql-1.12.0.dist-info → mtsql-1.12.2.dist-info}/METADATA +1 -1
- {mtsql-1.12.0.dist-info → mtsql-1.12.2.dist-info}/RECORD +8 -8
- {mtsql-1.12.0.dist-info → mtsql-1.12.2.dist-info}/LICENSE +0 -0
- {mtsql-1.12.0.dist-info → mtsql-1.12.2.dist-info}/WHEEL +0 -0
- {mtsql-1.12.0.dist-info → mtsql-1.12.2.dist-info}/top_level.txt +0 -0
mt/sql/redshift/__init__.py
CHANGED
mt/sql/redshift/dialect.py
CHANGED
|
@@ -749,7 +749,7 @@ class RedshiftDDLCompiler(PGDDLCompiler):
|
|
|
749
749
|
|
|
750
750
|
def post_create_table(self, table):
|
|
751
751
|
kwargs = ["diststyle", "distkey", "sortkey", "interleaved_sortkey"]
|
|
752
|
-
info = table.dialect_options["
|
|
752
|
+
info = table.dialect_options["mtsql_redshift"]
|
|
753
753
|
info = {key: info.get(key) for key in kwargs}
|
|
754
754
|
return get_table_attributes(self.preparer, **info)
|
|
755
755
|
|
|
@@ -776,7 +776,7 @@ class RedshiftDDLCompiler(PGDDLCompiler):
|
|
|
776
776
|
def _fetch_redshift_column_attributes(self, column):
|
|
777
777
|
text = ""
|
|
778
778
|
if sa_version >= Version("1.3.0"):
|
|
779
|
-
info = column.dialect_options["
|
|
779
|
+
info = column.dialect_options["mtsql_redshift"]
|
|
780
780
|
else:
|
|
781
781
|
if not hasattr(column, "info"):
|
|
782
782
|
return text
|
|
@@ -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.12.
|
|
3
|
+
Version: 1.12.2
|
|
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=o4O-Pz81HnYdc-nrvPexrczHaXAhK87fPW1vQTWaWW0,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=g3ie_BiOFoEC7vOcykbfNwBWKDtPzSf4XXpF6glAgik,53452
|
|
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.12.
|
|
14
|
-
mtsql-1.12.
|
|
15
|
-
mtsql-1.12.
|
|
16
|
-
mtsql-1.12.
|
|
17
|
-
mtsql-1.12.
|
|
13
|
+
mtsql-1.12.2.dist-info/LICENSE,sha256=PojkRlQzTT5Eg6Nj03XoIVEefN3u8iiIFf1p4rqe_t4,1070
|
|
14
|
+
mtsql-1.12.2.dist-info/METADATA,sha256=gpavVgTovq9l6LzjRF0wtPRXmwnrghNT9IouER8j4sQ,715
|
|
15
|
+
mtsql-1.12.2.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
16
|
+
mtsql-1.12.2.dist-info/top_level.txt,sha256=WcqGFu9cV7iMZg09iam8eNxUvGpLSKKF2Iubf6SJVOo,3
|
|
17
|
+
mtsql-1.12.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|