SQL ANALYZER is a Java Swing based DBMS visualization project that allows users to execute SQL queries and visualize internal database operations.
The project is designed as an educational SQL execution and visualization tool for understanding how DBMS systems process queries internally.
The application supports:
- SQL query execution
- SELECT, INSERT, UPDATE, DELETE operations
- Query result visualization
- Database metadata display
- PostgreSQL integration
- Dockerized database infrastructure
The backend database runs inside Docker using PostgreSQL and Docker Compose.
- Java Swing
- JDBC
- PostgreSQL
- Docker
- Docker Compose
- pgAdmin
- VS Code PostgreSQL Extension
Java Swing Application
↓
JDBC Connection
↓
Docker PostgreSQL Container
↓
Persistent Docker Volume
Every teammate should:
- Install Docker Desktop
- Install Java JDK
- Clone repository
- Run docker compose up -d
- Compile and run Java project
No local PostgreSQL installation is required.
Before running the project, install the following software:
Install Java JDK 21 or above.
Check installation:
java --versionInstall Docker Desktop and make sure Docker is running.
Check installation:
docker --versionThe PostgreSQL database runs using Docker Compose.
Host Machine: 5434
Docker Container: 5432
jdbc:postgresql://localhost:5434/sql_visualizerInstall Git.
Check installation:
git --versionInstall:
- VS Code
- Java Extension Pack
- PostgreSQL Extension (Optional)
git clone https://github.com/karthikgowdav/SQL-ANALYZER.gitcd SQL-ANALYZERdocker compose up -dThis will automatically:
- Start PostgreSQL container
- Create sql_visualizer database
- Execute init.sql
- Create tables
- Insert sample data
javac -cp "lib/postgresql-42.7.11.jar" src/*.javajava -cp "lib/postgresql-42.7.11.jar;src" SQLVisualizerUI- SQL Query Execution
- Query Result Display
- Database Metadata Information
- Dockerized PostgreSQL Setup
- Automatic Database Initialization
- Educational DBMS Visualization Foundation
- Query execution animations
- Sequential scan visualization
- Index scan visualization
- Join visualization
- Sorting visualization
- Query execution plans
- DBMS internal operation simulation
Karthik Gowda