Skip to content

glue-lab/sqldeps-webapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SQLDeps Web Application

An interactive web interface for extracting SQL dependencies using Large Language Models.

What is this?

This web application is a Streamlit-based showcase for SQLDeps, allowing users to interactively explore how large language models can analyze SQL queries and extract their underlying table and column dependencies.

Features

  • 🔍 Instantly visualize SQL query dependencies
  • 🤖 Powered by advanced language models
  • 📊 Interactive, real-time dependency extraction
  • 💾 Optional database schema validation

Example

Consider this SQL query:

WITH user_orders AS (
    SELECT o.user_id, COUNT(*) AS order_count 
    FROM orders o 
    JOIN users u ON o.user_id = u.id 
    WHERE u.status = 'active' 
    GROUP BY o.user_id
)
CREATE TABLE transactions.user_order_summary AS 
SELECT * FROM user_orders;

When processed, the application shall return:

  • Dependencies: orders and users tables
  • Used columns: user_id, status
  • Output: transactions.user_order_summary table

Live Demo

Try SQLDeps Web Application

API Key Limitations

This web application provides complimentary API access to:

  • OpenAI
  • Groq
  • DeepSeek

Due to the showcase nature of this service, we offer a limited number of free requests. If the service becomes temporarily unavailable or unresponsive, this may be due to exhausted API credits.

For unlimited or production use, we recommend:

Open Source

Part of the SQLDeps project, demonstrating the power of AI in understanding SQL dependencies.

License

MIT License

About

Streamlit-based web application to showcase SQLDeps.

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages