Skip to content

itsrahulap/AskSQLAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

11 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

AskSQL AI

Convert natural language questions into PostgreSQL queries with a heavy-duty, premium AI-powered interface.

๐Ÿš€ Features

  • Intuitive NL to SQL: Powered by Gemini 2.5 Flash for high accuracy.
  • Midnight Sapphire UI: Ultra-premium dark theme with advanced glassmorphism.
  • Live Database Connection: Automatically reflects your current schema.
  • Dynamic Schema Creator: Create tables with support for TEXT, INTEGER, FLOAT, TIMESTAMP, and DATE.
  • Execution Safety: Strict read-only validation blocks destructive commands.

๐Ÿ› ๏ธ Tech Stack

  • Frontend: React 18, Vite, TypeScript, Custom CSS (Midnight theme).
  • Backend: FastAPI, PostgreSQL, Google GenAI SDK.
  • Orchestration: Docker & Docker Compose.

๐Ÿ“ฆ Quick Start

  1. API Key: Get a Gemini API key from Google AI Studio.
  2. Environment: Add your keys and DB config to backend/.env.
  3. Run:
    docker-compose up --build

Access the app at: http://localhost:3000

๐Ÿ”’ Security

All generated SQL queries are parsed for restricted keywords (DROP, DELETE, etc.) before execution to ensure a read-only experience for the AI.

About

AskSQL AI is a full-stack AI application that converts natural language into safe, read-only PostgreSQL queries using FastAPI and Google Gemini, featuring a premium React + TypeScript interface and Docker-based deployment.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages