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

@@ -257,6 +257,9 @@ class CLASS_mySQLDBCtrl:
257
257
  # ----------------------------------------------------------------------
258
258
  def CUF_str_utf8(self, Pobj_DataSet):
259
259
  return(str(Pobj_DataSet).encode("latin1").decode("big5"));
260
+ # ----------------------------------------------------------------------
261
+ def CUF_utf8(self, Pobj_DataSet):
262
+ return(str(Pobj_DataSet).encode("latin1").decode("big5"));
260
263
 
261
264
 
262
265
  # ----------------------------------------------------------------------
@@ -267,6 +270,9 @@ class CLASS_mySQLDBCtrl:
267
270
  # ----------------------------------------------------------------------
268
271
  def CUF_str_big5(self, Pobj_DataSet):
269
272
  return(str(Pobj_DataSet).encode("big5").decode("latin1"));
273
+ # ----------------------------------------------------------------------
274
+ def CUF_big5(self, Pobj_DataSet):
275
+ return(str(Pobj_DataSet).encode("big5").decode("latin1"));
270
276
 
271
277
 
272
278
  # ----------------------------------------------------------------------
@@ -285,6 +291,9 @@ class CLASS_mySQLDBCtrl:
285
291
  # --------------------------------------------------
286
292
  with open(Pms_FileName, "wb") as obj_FP:
287
293
  obj_FP.write(obj_FileData);
294
+ # ----------------------------------------------------------------------
295
+ def CUF_GET_Blob(self, Pobj_Query, Pms_BlobFieldName, Pms_FileName):
296
+ self.CUF_GetBlobField(Pobj_Query, Pms_BlobFieldName, Pms_FileName);
288
297
 
289
298
 
290
299
  # ----------------------------------------------------------------------
@@ -309,7 +318,10 @@ class CLASS_mySQLDBCtrl:
309
318
  Pobj_Query.execute(ms_SQL, (obj_FileData,));
310
319
  # --------------------------------------------------
311
320
  self.CUobj_Conn.commit();
312
-
321
+ # ----------------------------------------------------------------------
322
+ def CUF_SET_BLOB(self, Pobj_Query, Pms_TableName, Pms_QUERY, Pms_BlobFieldName, Pms_FileName):
323
+ self.CUF_SetBlobField(Pobj_Query, Pms_TableName, Pms_QUERY, Pms_BlobFieldName, Pms_FileName);
324
+
313
325
 
314
326
  # --------------------------------------------------------------------------------
315
327
  # FUNC: 取得伺服主機系統日期時間
@@ -452,4 +464,16 @@ if(__name__ == '__main__'):
452
464
  ms_SQL = "SELECT * FROM _def_fileservicemedia_d "\
453
465
  " WHERE FolderType=1 AND MEDIAID=1 AND BlockID=1 ";
454
466
  obj_Query = Gobj_mySQLDBCtrl.CUF_DB_OpenSQL(Gobj_Conn, ms_SQL);
455
- Gobj_mySQLDBCtrl.CUF_GetBlobField(obj_Query, "Media_Block", "C:\\temp\\PPPKKK.zip");
467
+ Gobj_mySQLDBCtrl.CUF_GetBlobField(obj_Query, "Media_Block", "C:\\temp\\PPPKKK.zip");
468
+
469
+ # ----------------------------------------------------------------------
470
+ ms_SQL = "SELECT * From sysuserinfo ORDER BY USERID ";
471
+ obj_ZQuery, obj_DataSet = obj_mySQLDBCtrl.CUF_DB_OpenSQL(obj_ZConn, ms_SQL);
472
+
473
+ while not obj_mySQLDBCtrl.CUF_DB_Eof(obj_ZQuery):
474
+ print("USERID="+ obj_mySQLDBCtrl.CUF_utf8(obj_DataSet["LOGIN"]));
475
+ print("PASSWD="+ obj_mySQLDBCtrl.CUF_utf8(obj_DataSet["PASSWD"]));
476
+ obj_DataSet = obj_mySQLDBCtrl.CUF_Next(obj_ZQuery);
477
+
478
+
479
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mySQLDBCtrlAPI
3
- Version: 1.2510.25
3
+ Version: 1.2510.26
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=sCjQLBD26d6HRTZYZCEniJF-cZ2Zrl_pSFhrn2gH2lY,23942
3
+ mysqldbctrlapi-1.2510.26.dist-info/licenses/LICENSE,sha256=bTN6shImvjBn0VScA1LIqy7LH3B_O6XZieGPnoT4Gxk,1054
4
+ mysqldbctrlapi-1.2510.26.dist-info/METADATA,sha256=fnxorZnt53q4mBqdBxThQWnJL8p3MKScAnIy-w2_KbQ,1961
5
+ mysqldbctrlapi-1.2510.26.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
6
+ mysqldbctrlapi-1.2510.26.dist-info/top_level.txt,sha256=onworg8ic7UQRjmAT-NpGAJFJb4X9hU1rOlYUCD_gng,15
7
+ mysqldbctrlapi-1.2510.26.dist-info/RECORD,,
@@ -1,7 +0,0 @@
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,,