Skip to content

iamtushar28/Talk2DB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

26 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Talk2DB

Talk2DB is a smart, AI-powered automation tool built with Next.js that lets users interact with databases using natural language instead of complex queries.
Simply type prompts like:

β€œShow all users who published blogs”

and Talk2DB = will automatically send User Promt + Connected DB's type + Schema to generate the corresponding database query, highlight it for review, and execute it safely β€” showing the results in a structured table.


πŸš€ Features

  • πŸ’¬ Natural Language Querying – Type what you want in plain English.
  • 🧠 AI-Powered Query Generation – Automatically converts your prompt into a valid database query.
  • πŸ”’ Safe Execution Layer – Only allows read-only operations.
  • πŸ—„οΈ My SQL Integration – Connect your My SQL database easily.
  • πŸ—„οΈ MongoDB Integration – Connect your MongoDB database easily.
  • βš™οΈ Future-Ready – MySQL and other database support planned.
  • 🧾 Visual Output – See results in a clean, tabular format.
  • πŸ§β€β™‚οΈ User-Controlled – Review and run queries manually before execution.


βš™οΈ How It Works

Workflow Diagram


πŸ“ Project Structure

project-root/
β”œβ”€β”€ app/                         # App source code
β”‚   β”œβ”€β”€ api/
β”‚   β”‚   β”œβ”€β”€ gemini/              # Generate query
β”‚   β”‚   β”œβ”€β”€ mongodb/             # Fetch schema & execute Mongo queries (MQL)
β”‚   β”‚   └── mysql/               # Fetch schema & execute SQL queries
β”‚   β”œβ”€β”€ components/              # Reusable UI components
β”‚   β”œβ”€β”€ connect/                 # Database connection pages
β”‚   └── quick-guide/             # Quick-guide page
β”œβ”€β”€ lib/                         # Firebase configuration
β”œβ”€β”€ public/                      # Static files
β”œβ”€β”€ redux-store/                 # Dynamic state handling (authentication, DB Connection, Query)
β”œβ”€β”€ utilis/                      # Raw database schema compression
β”œβ”€β”€ package.json                 # Dependencies & scripts
└── README.md                    # Project documentation

πŸ”’ Security

Talk2DB ensures all database operations are read-only.
It blocks any write, update, or delete queries.


UNDER DEVELOPEMENT πŸ§‘β€πŸ’»...

About

AI Powered DB automationπŸ“Š

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published