Policy.from_database(): read tables and columns from a live database
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
Research direction
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.
Written by the indexing model from the issue text.
Description
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 extrasqlguardllm[db] - Fills
tablesandschema; other options are passed through - Tested against SQLite in CI; documented for PostgreSQL, MySQL and SQL Server URLs
Relevant files
src/sqlguardllm/introspect.pytests/test_introspect.pypyproject.toml
Size
S (up to half a day)
Notes
- Depends on: #5
- Milestone: v0.3 · More power
- Design: docs/DESIGN.md · threat model · attack gallery
- Dominant language
- Python
- Stars
- 0
- Forks
- 0
- Avg merge
- 1m
- Merged PRs (30d)
- 2
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from jmmana/sqlguardllm
-
area:security good first issue size:s type:feature
Difficulty 2/5 Half a day Newbie friendliness 68/100
jmmana/sqlguardllm#16 ·
-
area:integrations size:s type:feature
Difficulty 4/5 Half a day Newbie friendliness 25/100
jmmana/sqlguardllm#38 ·
-
area:security size:m type:infra
Difficulty 4/5 1-2 days Newbie friendliness 30/100
jmmana/sqlguardllm#37 ·
-
area:integrations help wanted size:m type:feature
Difficulty 4/5 3-5 days Newbie friendliness 30/100
jmmana/sqlguardllm#36 ·
-
area:integrations help wanted size:m type:feature
Difficulty 4/5 3-5 days Newbie friendliness 35/100
jmmana/sqlguardllm#35 ·
All issues in jmmana/sqlguardllm
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
vllm-project/vllm#70030 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
TigreGotico/tugaphone#408 ·
Maintainers usually reply within 1 day
-
t: bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 3 days
-
needs-triage
Difficulty 1/5 Under an hour Newbie friendliness 85/100
Azure/azure-sdk-for-python#50155 · 1 reaction ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day