mySQLDBCtrlAPI 1.2510.23__py3-none-any.whl → 1.2510.25__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.

Potentially problematic release.


This version of mySQLDBCtrlAPI might be problematic. Click here for more details.

@@ -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.23
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
@@ -0,0 +1,7 @@
1
+ mySQLDBCtrlAPI/__init__.py,sha256=WAATQWzZgzaGObOW3SapBNZgB6n6Kr9Px_uSXdxj1vY,101
2
+ mySQLDBCtrlAPI/mySQLDBCtrl.py,sha256=WXGmJrzGhnS8Pntr73zzWxXMwwCiea7UD1V0X_Cr994,22581
3
+ mysqldbctrlapi-1.2510.25.dist-info/licenses/LICENSE,sha256=bTN6shImvjBn0VScA1LIqy7LH3B_O6XZieGPnoT4Gxk,1054
4
+ mysqldbctrlapi-1.2510.25.dist-info/METADATA,sha256=ORr0wh8JaNAi0BBfxs8T2nzl-85frPILBwrdpW6FouA,1961
5
+ mysqldbctrlapi-1.2510.25.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
6
+ mysqldbctrlapi-1.2510.25.dist-info/top_level.txt,sha256=onworg8ic7UQRjmAT-NpGAJFJb4X9hU1rOlYUCD_gng,15
7
+ mysqldbctrlapi-1.2510.25.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- mySQLDBCtrlAPI/__init__.py,sha256=WAATQWzZgzaGObOW3SapBNZgB6n6Kr9Px_uSXdxj1vY,101
2
- mySQLDBCtrlAPI/mySQLDBCtrl.py,sha256=eK9HYIVq22c5lYn8iQ-aGBGjop0d1Atg_ZcCo_MpffQ,22288
3
- mysqldbctrlapi-1.2510.23.dist-info/licenses/LICENSE,sha256=bTN6shImvjBn0VScA1LIqy7LH3B_O6XZieGPnoT4Gxk,1054
4
- mysqldbctrlapi-1.2510.23.dist-info/METADATA,sha256=RpS4a2xccvV378oBa-KJbKzs2Bngvw3ora_jMfv6X_Q,1961
5
- mysqldbctrlapi-1.2510.23.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
6
- mysqldbctrlapi-1.2510.23.dist-info/top_level.txt,sha256=onworg8ic7UQRjmAT-NpGAJFJb4X9hU1rOlYUCD_gng,15
7
- mysqldbctrlapi-1.2510.23.dist-info/RECORD,,