MCPcopy Create free account
hub / github.com/caesarHQ/textSQL / run_sql

Function run_sql

api/app/api/routes.py:179–185  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

177
178@bp.route('/execute_sql', methods=['POST'])
179def run_sql():
180 request_body = request.get_json()
181 try:
182 result = execute_sql(request_body.get('sql'))
183 except Exception as e:
184 return make_response(jsonify({"error": f'Error processing request: {str(e)}' }), 400)
185 return make_response(jsonify({'result': result}), 200)
186
187
188# DEPRECATED

Callers

nothing calls this directly

Calls 1

execute_sqlFunction · 0.50

Tested by

no test coverage detected