Guard.explain(): what a query reads, in data and in words

オープン
#27 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python, sql
領域
security

調査の方向性

Start in src/sqlguardllm/explain.py and tests/test_explain.py, and read how Guard validates and rewrites SQL, since explain() must report the same tables, filters, masks, limit and violations. Issue #10 is listed as a dependency, so check whether it is merged before designing the Explanation structure. Done means Guard.explain covers joins, subqueries, CTEs and rejected queries, and to_text produces the English and Spanish sentences shown in the issue, with tests for each case.

索引モデルが issue の本文から書いたものです。

説明

area:core size:m type:feature
Goal

Show users, auditors and UIs what a query will read before or after running it.

Acceptance criteria
  • Guard.explain(sql, context) returns tables, columns read per table, row filters and masks that apply, the limit and any violations
  • Explanation.to_text(language) in English and Spanish, e.g. "Reads branches.name and the sum of invoices.total for branches 1 and 2, up to 1000 rows"
  • Works for rejected queries too, listing why
  • Tests for joins, subqueries, CTEs and rejected queries
Relevant files
  • src/sqlguardllm/explain.py
  • tests/test_explain.py
Size

M (1-2 days)

Notes
主要言語
Python
スター
0
フォーク
0
平均マージ
1分
マージ済み PR(30日)
2

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

jmmana/sqlguardllm のほかの issue

jmmana/sqlguardllm の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。