Web Application
SQLDeps includes a Streamlit-based web interface for interactive SQL dependency exploration.
Installation
To use the web application, install SQLDeps with the app dependencies:
Starting the App
Start the web application with:
This will launch the Streamlit app in your default web browser, typically at http://localhost:8501.
Using the Web Interface
The web interface provides an intuitive way to analyze SQL dependencies:
Configuration Panel
On the left sidebar, you'll find configuration options:
- Framework Selection: Choose between Groq, OpenAI, or DeepSeek
- Model Selection: Select the specific model to use
- Custom Prompt: Optionally upload a custom prompt YAML file
- Database Connection: Configure database connection for schema validation
- SQL Input: Upload a SQL file or enter SQL directly
Analysis Results
After clicking "Extract Dependencies", the main panel displays:
- SQL Query: The formatted SQL query that was analyzed
- Extracted Dependencies:
- Tables listed in a clear format
- Columns organized by table
- Database schema validation results (if enabled)
- DataFrame representation
- Raw JSON output
Download Options
The app provides options to download the results as:
- CSV file
- JSON file
- Data types for dependencies matching database (when enabled)
Database Matching
To enable database schema matching:
- Check the "Enable Database Schema Validation" option
- Enter database connection details:
- Host
- Port
- Database name
- Username
- Target schemas (comma-separated)
When database matching is enabled, the app will:
- Connect to the specified database
- Retrieve schema information for the target schemas
- Match extracted dependencies against the actual schema
- Display dependency data types showing exact matches and schema-agnostic dependencies
Example Workflow
- Select your preferred framework and model
- Either upload a SQL file or enter a SQL query
- Optionally configure database schema validation
- Click "Extract Dependencies" to analyze
- Explore the results in the main panel
- Download the results in your preferred format
Notes
The web application is designed for demonstration and exploration of single SQL files. For processing multiple files or entire folders, use the CLI or API interfaces.