schemagate
ashishsinha1602.github.io- Category
- Developer Tools
- Rank
- No. 2010Tools index
- Pricing
- Open Source
- Platform
- cli · web
- Type
- TOOL
- Date
About
A Python library that filters database schemas shown to an LLM in text-to-SQL pipelines based on the caller's identity and role, hiding tables the user isn't permitted to see before any SQL is generated. It reports 65–97% reductions in prompt tokens by excluding irrelevant or unauthorized schema objects, and works with any SQLAlchemy-supported database.
What it can do
Filter database schema visible to an LLM based on caller identity and role
Database schema and caller identity/role → Restricted schema subset
Rank database schema objects for relevance before SQL generation
Database schema → Ranked schema objects
Reduce prompt token count by excluding irrelevant or unauthorized schema objects
Database schema → Reduced prompt tokens (65–97% reduction)
Connect to any SQLAlchemy-supported database to retrieve schema
SQLAlchemy database connection → Database schema objects
Tags
Media

Comments (0)
No comments yet
Editorially curated, with community endorsements as a secondary signal. Corrections welcome.