()
| 177 | |
| 178 | @bp.route('/execute_sql', methods=['POST']) |
| 179 | def 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 |
nothing calls this directly
no test coverage detected