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

Function get_tables

byod/api/app/sql_explanation/routes.py:8–20  ·  view source on GitHub ↗

Explains SQL in natural language

()

Source from the content-addressed store, hash-verified

6
7@bp.route('/explain_sql', methods=['POST'])
8def get_tables():
9 """
10 Explains SQL in natural language
11 """
12 request_body = request.get_json()
13 sql = request_body.get('sql')
14
15 if not sql:
16 error_msg = '`sql` is missing from request body'
17 return make_response(jsonify({"error": error_msg}), 400)
18
19 explanation = get_sql_explanation(sql)
20 return make_response(jsonify({'explanation': explanation}), 200)

Callers

nothing calls this directly

Calls 1

get_sql_explanationFunction · 0.70

Tested by

no test coverage detected