Policy.from_database(): read tables and columns from a live database

Đang mở
#28 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
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
mysql, postgresql, python, sqlalchemy, sqlite
Lĩnh vực
databases

Hướng nghiên cứu

Start in src/sqlguardllm/introspect.py and tests/test_introspect.py, and check pyproject.toml for how the db extra is declared. Read #5 first, since this issue depends on it, and skim docs/DESIGN.md for how Policy builds tables and schema. Done when Policy.from_database honors include/exclude, passes other options through, has a passing SQLite test in CI, and the PostgreSQL, MySQL and SQL Server URL forms are documented.

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

Mô tả

area:core size:s type:feature
Goal

Build an exact schema without writing it by hand.

Acceptance criteria
  • Policy.from_database(url, include=[...], exclude=[...], **options) using the SQLAlchemy inspector, in the optional extra sqlguardllm[db]
  • Fills tables and schema; other options are passed through
  • Tested against SQLite in CI; documented for PostgreSQL, MySQL and SQL Server URLs
Relevant files
  • src/sqlguardllm/introspect.py
  • tests/test_introspect.py
  • pyproject.toml
Size

S (up to half a day)

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.