mySQLDBCtrlAPI 1.2510.22__tar.gz → 1.2510.25__tar.gz
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.
Potentially problematic release.
This version of mySQLDBCtrlAPI might be problematic. Click here for more details.
- {mysqldbctrlapi-1.2510.22 → mysqldbctrlapi-1.2510.25}/PKG-INFO +4 -1
- {mysqldbctrlapi-1.2510.22 → mysqldbctrlapi-1.2510.25}/README.md +3 -0
- {mysqldbctrlapi-1.2510.22 → mysqldbctrlapi-1.2510.25}/pyproject.toml +1 -1
- mysqldbctrlapi-1.2510.25/src/mySQLDBCtrlAPI/__init__.py +4 -0
- {mysqldbctrlapi-1.2510.22 → mysqldbctrlapi-1.2510.25}/src/mySQLDBCtrlAPI/mySQLDBCtrl.py +14 -6
- {mysqldbctrlapi-1.2510.22 → mysqldbctrlapi-1.2510.25}/src/mySQLDBCtrlAPI.egg-info/PKG-INFO +4 -1
- mysqldbctrlapi-1.2510.22/src/mySQLDBCtrlAPI/__init__.py +0 -4
- {mysqldbctrlapi-1.2510.22 → mysqldbctrlapi-1.2510.25}/LICENSE +0 -0
- {mysqldbctrlapi-1.2510.22 → mysqldbctrlapi-1.2510.25}/setup.cfg +0 -0
- {mysqldbctrlapi-1.2510.22 → mysqldbctrlapi-1.2510.25}/src/mySQLDBCtrlAPI.egg-info/SOURCES.txt +0 -0
- {mysqldbctrlapi-1.2510.22 → mysqldbctrlapi-1.2510.25}/src/mySQLDBCtrlAPI.egg-info/dependency_links.txt +0 -0
- {mysqldbctrlapi-1.2510.22 → mysqldbctrlapi-1.2510.25}/src/mySQLDBCtrlAPI.egg-info/requires.txt +0 -0
- {mysqldbctrlapi-1.2510.22 → mysqldbctrlapi-1.2510.25}/src/mySQLDBCtrlAPI.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mySQLDBCtrlAPI
|
|
3
|
-
Version: 1.2510.
|
|
3
|
+
Version: 1.2510.25
|
|
4
4
|
Summary: mySQLDBCtrlAPI Python package
|
|
5
5
|
Author-email: James Lin <tylin123@ms27.hinet.net>
|
|
6
6
|
License: Copyright (c) 2025 James Lin
|
|
@@ -33,6 +33,9 @@ Dynamic: license-file
|
|
|
33
33
|
#mySQLDBCtrlAPI
|
|
34
34
|
|
|
35
35
|
## History of version
|
|
36
|
+
Version 1.2510.23: 2025/10/22<BR>
|
|
37
|
+
Fixed version bugs.
|
|
38
|
+
|
|
36
39
|
Version 1.2510.22: 2025/10/22<BR>
|
|
37
40
|
1.Add string decode method (translage utf8 charset -> utf-8)
|
|
38
41
|
2.Add Eof() procedure
|
|
@@ -136,6 +136,8 @@ class CLASS_mySQLDBCtrl:
|
|
|
136
136
|
# 傳回: obj_Query
|
|
137
137
|
# ----------------------------------------------------------------------
|
|
138
138
|
def CUF_DB_OpenSQL(self, Pobj_Connection, Pms_SQL):
|
|
139
|
+
obj_DataSet: Any;
|
|
140
|
+
|
|
139
141
|
Pobj_Connection.commit();
|
|
140
142
|
# ------------------------------------------------------------
|
|
141
143
|
obj_Query = Pobj_Connection.cursor();
|
|
@@ -147,11 +149,13 @@ class CLASS_mySQLDBCtrl:
|
|
|
147
149
|
self.CVmi_qryRECCNT = self.CUF_DB_RecordCount(obj_Query);
|
|
148
150
|
# ------------------------------------------------------------
|
|
149
151
|
if(self.CVmi_qryRECCNT > 0):
|
|
150
|
-
self.CUF_DB_Next(obj_Query);
|
|
152
|
+
obj_DataSet = self.CUF_DB_Next(obj_Query);
|
|
151
153
|
# ------------------------------------------------------------
|
|
152
|
-
return(obj_Query);
|
|
154
|
+
return(obj_Query, obj_DataSet);
|
|
153
155
|
# ----------------------------------------------------------------------
|
|
154
156
|
def CUF_DB_OpenSQL_utf8(self, Pobj_Connection, Pms_SQL):
|
|
157
|
+
obj_DataSet: Any;
|
|
158
|
+
|
|
155
159
|
Pobj_Connection.commit();
|
|
156
160
|
# ------------------------------------------------------------
|
|
157
161
|
obj_Query = Pobj_Connection.cursor();
|
|
@@ -163,13 +167,13 @@ class CLASS_mySQLDBCtrl:
|
|
|
163
167
|
self.CVmi_qryRECCNT = self.CUF_DB_RecordCount(obj_Query);
|
|
164
168
|
# ------------------------------------------------------------
|
|
165
169
|
if(self.CVmi_qryRECCNT > 0):
|
|
166
|
-
self.CUF_DB_Next(obj_Query);
|
|
170
|
+
obj_DataSet = self.CUF_DB_Next(obj_Query);
|
|
167
171
|
# ------------------------------------------------------------
|
|
168
|
-
return(obj_Query);
|
|
172
|
+
return(obj_Query, obj_DataSet);
|
|
169
173
|
|
|
170
174
|
|
|
171
175
|
# ----------------------------------------------------------------------
|
|
172
|
-
# 功能: 擷取資料錄
|
|
176
|
+
# 功能: 擷取資料錄 (下一筆)
|
|
173
177
|
# 傳入:
|
|
174
178
|
# 傳回: obj_Field
|
|
175
179
|
# ----------------------------------------------------------------------
|
|
@@ -179,7 +183,10 @@ class CLASS_mySQLDBCtrl:
|
|
|
179
183
|
return(Pobj_Query.fetchone());
|
|
180
184
|
# ----------------------------------------------------------------------
|
|
181
185
|
def CUF_DB_Next(self, Pobj_Query):
|
|
182
|
-
self.CUF_DB_FETCH(Pobj_Query);
|
|
186
|
+
return(self.CUF_DB_FETCH(Pobj_Query));
|
|
187
|
+
# ----------------------------------------------------------------------
|
|
188
|
+
def CUF_Next(self, Pobj_Query):
|
|
189
|
+
return(self.CUF_DB_FETCH(Pobj_Query));
|
|
183
190
|
|
|
184
191
|
|
|
185
192
|
# ----------------------------------------------------------------------
|
|
@@ -251,6 +258,7 @@ class CLASS_mySQLDBCtrl:
|
|
|
251
258
|
def CUF_str_utf8(self, Pobj_DataSet):
|
|
252
259
|
return(str(Pobj_DataSet).encode("latin1").decode("big5"));
|
|
253
260
|
|
|
261
|
+
|
|
254
262
|
# ----------------------------------------------------------------------
|
|
255
263
|
# 功能: 轉換字串編碼 (utf-8 -> big5)
|
|
256
264
|
# 傳入:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mySQLDBCtrlAPI
|
|
3
|
-
Version: 1.2510.
|
|
3
|
+
Version: 1.2510.25
|
|
4
4
|
Summary: mySQLDBCtrlAPI Python package
|
|
5
5
|
Author-email: James Lin <tylin123@ms27.hinet.net>
|
|
6
6
|
License: Copyright (c) 2025 James Lin
|
|
@@ -33,6 +33,9 @@ Dynamic: license-file
|
|
|
33
33
|
#mySQLDBCtrlAPI
|
|
34
34
|
|
|
35
35
|
## History of version
|
|
36
|
+
Version 1.2510.23: 2025/10/22<BR>
|
|
37
|
+
Fixed version bugs.
|
|
38
|
+
|
|
36
39
|
Version 1.2510.22: 2025/10/22<BR>
|
|
37
40
|
1.Add string decode method (translage utf8 charset -> utf-8)
|
|
38
41
|
2.Add Eof() procedure
|
|
File without changes
|
|
File without changes
|
{mysqldbctrlapi-1.2510.22 → mysqldbctrlapi-1.2510.25}/src/mySQLDBCtrlAPI.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{mysqldbctrlapi-1.2510.22 → mysqldbctrlapi-1.2510.25}/src/mySQLDBCtrlAPI.egg-info/requires.txt
RENAMED
|
File without changes
|
{mysqldbctrlapi-1.2510.22 → mysqldbctrlapi-1.2510.25}/src/mySQLDBCtrlAPI.egg-info/top_level.txt
RENAMED
|
File without changes
|