From 587182c3b101d4cbc4ac2b85d783148957b7f4d0 Mon Sep 17 00:00:00 2001 From: qsc20001102 Date: Thu, 4 Dec 2025 09:58:32 +0800 Subject: [PATCH] 11 --- core/async_mysql.py | 1 + 1 file changed, 1 insertion(+) diff --git a/core/async_mysql.py b/core/async_mysql.py index 022ee56..66862ed 100644 --- a/core/async_mysql.py +++ b/core/async_mysql.py @@ -35,6 +35,7 @@ class AsyncMySQL: await cursor.execute(sql, params or ()) return await cursor.fetchall() + async def execute(self, sql: str, params=None): """执行 SQL(insert/update/delete)""" await self.init_pool()