MCPcopy Create free account
hub / github.com/Spinachead/arg / execute_sql

Function execute_sql

app/core/state_graph/nodes/sql_query_graph/execute_sql.py:4–8  ·  view source on GitHub ↗

执行SQL查询

(state: SQLQueryState)

Source from the content-addressed store, hash-verified

2from core.state_graph.tool.tools import execute_sql_query
3
4def execute_sql(state: SQLQueryState) -> dict:
5 """执行SQL查询"""
6 result = execute_sql_query.invoke({"sql": state.sql})
7 print(f"\033[92mUsing execute_sql: {result}\033[0m") # 绿色输出
8 return {"context": result}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected