MCPcopy Create free account
hub / github.com/CL-lau/SQL-GPT / execute_query

Method execute_query

front/DatabaseManagerGUI.py:61–70  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

59 self.column_listbox.insert(tk.END, column)
60
61 def execute_query(self):
62 selected_db = self.db_combo.get()
63 query = self.query_text.get("1.0", tk.END).strip()
64
65 if query:
66 try:
67 results = self.db_manager.execute_query(selected_db, query)
68 messagebox.showinfo("查询结果", str(results))
69 except Exception as e:
70 messagebox.showerror("错误", f"查询错误:{e}")
71
72
73class DatabaseManager:

Callers

nothing calls this directly

Calls 2

getMethod · 0.80
execute_queryMethod · 0.45

Tested by

no test coverage detected