Optional cost guard with EXPLAIN for PostgreSQL and MySQL

Đang mở
#33 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
45/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
docker, mysql, postgresql, python, sql
Lĩnh vực
database, security

Hướng nghiên cứu

Start in src/sqlguardllm/execution.py to see how queries reach the engines, then read tests/engines/test_cost_guard.py, which the issue names as the home for the new tests. The issue depends on #31, so check that issue's state first. Done means a max_cost option rejects queries whose JSON EXPLAIN cost exceeds it on PostgreSQL and MySQL, other engines skip the check with a message, and container tests for both engines pass in CI.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

area:security size:m type:feature
Goal

Reject queries whose plan is too expensive before they run.

Acceptance criteria
  • max_cost option of the MCP server and of a small execution helper; runs EXPLAIN (JSON format) and compares the estimated cost
  • PostgreSQL and MySQL supported; other engines skip the check and say so
  • Tests with containers in CI for both engines
Relevant files
  • src/sqlguardllm/execution.py
  • tests/engines/test_cost_guard.py
Size

M (1-2 days)

Notes
Ngôn ngữ chính
Python
Star
0
Fork
0
Merge trung bình
1 phút
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của jmmana/sqlguardllm

Tất cả issue của jmmana/sqlguardllm

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.