feat: 只保留管理入口,缓存小区信息表解析,连接中显示提示,移除脚本管理打包方式
This commit is contained in:
@@ -342,16 +342,6 @@ class MySqlSummaryStore:
|
||||
raise main.ProcessingError(f"MySQL query failed: {exc}") from exc
|
||||
return [dict(zip(names, record, strict=True)) for record in records]
|
||||
|
||||
def ping(self) -> str:
|
||||
connection = self._open(database=None)
|
||||
try:
|
||||
with connection.cursor() as cursor:
|
||||
cursor.execute("SELECT VERSION()")
|
||||
row = cursor.fetchone()
|
||||
return str(row[0]) if row else ""
|
||||
finally:
|
||||
connection.close()
|
||||
|
||||
def _connection(self) -> Any:
|
||||
if not self._schema_ready:
|
||||
self._ensure_schema()
|
||||
|
||||
Reference in New Issue
Block a user