mtsql 1.11.19__py3-none-any.whl → 1.11.20__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 +1 -17
- mt/sql/redshift/commands.py +348 -261
- mt/sql/redshift/ddl.py +29 -27
- mt/sql/redshift/dialect.py +457 -345
- mt/sql/version.py +1 -1
- {mtsql-1.11.19.dist-info → mtsql-1.11.20.dist-info}/METADATA +2 -1
- mtsql-1.11.20.dist-info/RECORD +17 -0
- mtsql-1.11.19.dist-info/RECORD +0 -17
- {mtsql-1.11.19.dist-info → mtsql-1.11.20.dist-info}/LICENSE +0 -0
- {mtsql-1.11.19.dist-info → mtsql-1.11.20.dist-info}/WHEEL +0 -0
- {mtsql-1.11.19.dist-info → mtsql-1.11.20.dist-info}/top_level.txt +0 -0
mt/sql/redshift/__init__.py
CHANGED
|
@@ -20,24 +20,8 @@ __api__ = [
|
|
|
20
20
|
]
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
for package in ["psycopg2", "psycopg2-binary", "psycopg2cffi"]:
|
|
24
|
-
try:
|
|
25
|
-
if get_distribution(package).parsed_version < parse_version("2.5"):
|
|
26
|
-
raise ImportError("Minimum required version for psycopg2 is 2.5")
|
|
27
|
-
break
|
|
28
|
-
except DistributionNotFound:
|
|
29
|
-
pass
|
|
30
|
-
|
|
31
|
-
registry.register("rs", "mt.sql.redshift.dialect", "RedshiftDialect_psycopg2")
|
|
32
|
-
registry.register("rs.psycopg2", "mt.sql.redshift.dialect", "RedshiftDialect_psycopg2")
|
|
33
|
-
registry.register(
|
|
34
|
-
"rs+psycopg2cffi",
|
|
35
|
-
"mt.sql.redshift.dialect",
|
|
36
|
-
"RedshiftDialect_psycopg2cffi",
|
|
37
|
-
)
|
|
38
|
-
|
|
39
23
|
registry.register(
|
|
40
24
|
"mtsql_redshift",
|
|
41
25
|
"mt.sql.redshift.dialect",
|
|
42
|
-
"
|
|
26
|
+
"RedshiftDialect",
|
|
43
27
|
)
|