SQL Explorer is a Django app for writing, running, and sharing SQL against connected databases. It adds schema helpers, snapshots, pivots, and an optional LLM query assistant.
Overview
SQL Explorer is a Django-based reporting and query tool meant to move data between people with minimal friction. You can embed it in an existing Django site or run it as a standalone analytics application. It connects to SQL databases supported by Django and to user-uploaded CSV, JSON, or SQLite files.
Users write SQL in a browser editor with schema browsing and autocomplete, view results inline, and keep history and logs of past runs. Parameterized queries can expose simple forms for colleagues who do not write SQL. Saved queries may run on schedules to snapshot changing tables, export by email, or surface as lightweight JSON endpoints.
In-browser summaries include basic statistics, pivot tables, and scatter plots for quick looks without exporting to a spreadsheet. A playground area supports ad hoc queries with shareable URLs. Optional OpenAI or other provider API keys enable an assistant that drafts or debugs SQL using schema context in prompts.
A bundled test project starts with Docker Compose, serving the app on a local port with default admin credentials for evaluation. Hosted cloud pricing is advertised separately, but the open core is intended for self-hosted commercial use.
Key features
- Multi-connection SQL querying
- CSV, JSON, SQLite uploads
- Schema browser and autocomplete
- Scheduled query snapshots
- Parameterized query UI
- In-browser pivots and charts
- Email delivery of results
- LLM SQL assistant
Use cases
- Team SQL reporting
- Ad hoc data exploration
- Sharing queries with non-SQL users