mtsql 1.5.202308101008__py3-none-any.whl → 1.6.202312111459__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/psql.py +3 -5
- mt/sql/version.py +7 -7
- {mtsql-1.5.202308101008.dist-info → mtsql-1.6.202312111459.dist-info}/METADATA +2 -2
- mtsql-1.6.202312111459.dist-info/RECORD +11 -0
- mtsql-1.5.202308101008.dist-info/RECORD +0 -11
- {mtsql-1.5.202308101008.dist-info → mtsql-1.6.202312111459.dist-info}/LICENSE +0 -0
- {mtsql-1.5.202308101008.dist-info → mtsql-1.6.202312111459.dist-info}/WHEEL +0 -0
- {mtsql-1.5.202308101008.dist-info → mtsql-1.6.202312111459.dist-info}/top_level.txt +0 -0
mt/sql/psql.py
CHANGED
|
@@ -1326,11 +1326,9 @@ def make_primary(
|
|
|
1326
1326
|
table_name, engine, schema=schema, nb_trials=nb_trials, logger=logger
|
|
1327
1327
|
):
|
|
1328
1328
|
if schema is None:
|
|
1329
|
-
s = "Table or view with name '{}' does not exists."
|
|
1329
|
+
s = f"Table or view with name '{table_name}' does not exists."
|
|
1330
1330
|
else:
|
|
1331
|
-
s = "Table or view with name '{}' from schema '{}' does not exists."
|
|
1332
|
-
table_name, schema
|
|
1333
|
-
)
|
|
1331
|
+
s = f"Table or view with name '{table_name}' from schema '{schema}' does not exists."
|
|
1334
1332
|
raise ps.ProgrammingError(s)
|
|
1335
1333
|
|
|
1336
1334
|
frame_sql_str = frame_sql(table_name, schema=schema)
|
|
@@ -1347,7 +1345,7 @@ def make_primary(
|
|
|
1347
1345
|
|
|
1348
1346
|
msg = f"Making {column_str} of {frame_sql_str} primary..."
|
|
1349
1347
|
logg.info(msg, logger=logger)
|
|
1350
|
-
query_str = """
|
|
1348
|
+
query_str = f"""
|
|
1351
1349
|
ALTER TABLE {frame_sql_str} ADD PRIMARY KEY ({column_str})
|
|
1352
1350
|
;"""
|
|
1353
1351
|
exec_sql(query_str, engine, nb_trials=nb_trials, logger=logger)
|
mt/sql/version.py
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
VERSION_YEAR = 2023
|
|
2
|
-
VERSION_MONTH = int('
|
|
3
|
-
VERSION_DAY = int('
|
|
4
|
-
VERSION_HOUR = int('
|
|
5
|
-
VERSION_MINUTE = int('
|
|
2
|
+
VERSION_MONTH = int('12')
|
|
3
|
+
VERSION_DAY = int('11')
|
|
4
|
+
VERSION_HOUR = int('14')
|
|
5
|
+
VERSION_MINUTE = int('59')
|
|
6
6
|
MAJOR_VERSION = 1
|
|
7
|
-
MINOR_VERSION =
|
|
8
|
-
PATCH_VERSION =
|
|
9
|
-
version_date = '2023/
|
|
7
|
+
MINOR_VERSION = 6
|
|
8
|
+
PATCH_VERSION = 202312111459
|
|
9
|
+
version_date = '2023/12/11 14:59'
|
|
10
10
|
version = '{}.{}.{}'.format(MAJOR_VERSION, MINOR_VERSION, PATCH_VERSION)
|
|
11
11
|
__all__ = ['MAJOR_VERSION', 'MINOR_VERSION', 'PATCH_VERSION', 'version_date', 'version']
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: mtsql
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.6.202312111459
|
|
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']
|
|
7
7
|
Project-URL: Documentation, https://mtdoc.readthedocs.io/en/latest/mt.sql/mt.sql.html
|
|
8
8
|
Project-URL: Source Code, https://github.com/inteplus/mtsql
|
|
9
9
|
License-File: LICENSE
|
|
10
|
-
Requires-Dist: sqlalchemy
|
|
10
|
+
Requires-Dist: sqlalchemy
|
|
11
11
|
Requires-Dist: tzlocal
|
|
12
12
|
Requires-Dist: tqdm
|
|
13
13
|
Requires-Dist: psycopg2-binary
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
mt/sql/__init__.py,sha256=b7zO50apZxt9Hg2eOkJhRLrXgACR8eS5b-Rphdn5qNQ,44
|
|
2
|
+
mt/sql/base.py,sha256=sFr7O_Odfsf2AHr9kq3DXGCAFInCKgHSgLJaen507_I,9994
|
|
3
|
+
mt/sql/mysql.py,sha256=n2ENDctdUqZuSaDAcrqZYtPtawq3Wx4dOPCRsCB5Q4w,4894
|
|
4
|
+
mt/sql/psql.py,sha256=dRN4wH1uQ-deGb2M-3PbdUfjHQ_1fbPXnR_94X1KMIU,67364
|
|
5
|
+
mt/sql/sqlite.py,sha256=T2ak_hhNi_zRfpg_gp8JhNHn7D2kl4i-Ey6-9ANMtz0,8678
|
|
6
|
+
mt/sql/version.py,sha256=Gw-cqAJUQkq15aZ7wH7Kko2b1pAD2Jx9PSnlpz_wnPU,396
|
|
7
|
+
mtsql-1.6.202312111459.dist-info/LICENSE,sha256=PojkRlQzTT5Eg6Nj03XoIVEefN3u8iiIFf1p4rqe_t4,1070
|
|
8
|
+
mtsql-1.6.202312111459.dist-info/METADATA,sha256=Nil4E7SpttMKbiwmhk_A0Kf07-tsW5528buQmE4NpxQ,589
|
|
9
|
+
mtsql-1.6.202312111459.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
10
|
+
mtsql-1.6.202312111459.dist-info/top_level.txt,sha256=WcqGFu9cV7iMZg09iam8eNxUvGpLSKKF2Iubf6SJVOo,3
|
|
11
|
+
mtsql-1.6.202312111459.dist-info/RECORD,,
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
mt/sql/__init__.py,sha256=b7zO50apZxt9Hg2eOkJhRLrXgACR8eS5b-Rphdn5qNQ,44
|
|
2
|
-
mt/sql/base.py,sha256=sFr7O_Odfsf2AHr9kq3DXGCAFInCKgHSgLJaen507_I,9994
|
|
3
|
-
mt/sql/mysql.py,sha256=n2ENDctdUqZuSaDAcrqZYtPtawq3Wx4dOPCRsCB5Q4w,4894
|
|
4
|
-
mt/sql/psql.py,sha256=RNzne4AObfpaW7yR5qyabtHDMSZY2SAJXxu3NZuJZdA,67411
|
|
5
|
-
mt/sql/sqlite.py,sha256=T2ak_hhNi_zRfpg_gp8JhNHn7D2kl4i-Ey6-9ANMtz0,8678
|
|
6
|
-
mt/sql/version.py,sha256=M-fHIdX1ra_rUT6GZ_H6J08r0yOTUnG_c1G2Ykue_KA,396
|
|
7
|
-
mtsql-1.5.202308101008.dist-info/LICENSE,sha256=PojkRlQzTT5Eg6Nj03XoIVEefN3u8iiIFf1p4rqe_t4,1070
|
|
8
|
-
mtsql-1.5.202308101008.dist-info/METADATA,sha256=uZ_unsYOO4ALex7eM3Sp2rSeg3rmHL_-QE8V80suk40,597
|
|
9
|
-
mtsql-1.5.202308101008.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
10
|
-
mtsql-1.5.202308101008.dist-info/top_level.txt,sha256=WcqGFu9cV7iMZg09iam8eNxUvGpLSKKF2Iubf6SJVOo,3
|
|
11
|
-
mtsql-1.5.202308101008.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|