DevQuery is a modern web application that leverages Natural Language Processing (NLP) and AI to convert plain English descriptions into optimized SQL queries. It's designed to make database interactions more intuitive and accessible for developers and data analysts.
- Convert natural language descriptions to SQL queries
- Support for complex queries with joins, aggregations, and filters
- Intelligent query optimization suggestions
- MySQL
- PostgreSQL
- SQLite
- SQL Server
- Oracle
- Execute queries in real-time
- Save and organize frequently used queries
- Query history tracking
- Export results to CSV
- Visual database schema browser
- Table and column information
- Relationship mapping
- Query performance analysis
- Usage patterns and statistics
- Optimization recommendations
DevQuery/
βββ index.html # Login page
βββ home.html # Landing page
βββ dashboard.html # Main application interface
βββ script.js # Login functionality
βββ dashboard.js # Main application logic
βββ styles.css # Login page styles
βββ style.css # Home page styles
βββ dashboard.css # Dashboard styles
βββ img1.png # Logo/branding
βββ README.md # This file
- Modern web browser (Chrome, Firefox, Safari, Edge)
- Local web server (optional, for development)
- Clone or download the project files
- Open
home.html
in your web browser to see the landing page - Navigate to the login page and use any email/password (demo mode)
- Access the main dashboard to start generating SQL queries
For development with live reload:
# Using Python's built-in server
python -m http.server 8000
# Using Node.js http-server
npx http-server
# Using PHP's built-in server
php -S localhost:8000
Then open http://localhost:8000
in your browser.
- Login: Use any email and password (6+ characters) on the login page
- Connect Database: Click "Connect Database" and enter your database credentials
- Generate SQL: Type a natural language description of what you want to query
- Execute: Review the generated SQL and click "Execute Query" to see results
- "Show me all customers who made purchases in the last 30 days"
- "Find products with low inventory levels"
- "Calculate average order value by region"
- "List the top 10 customers by total revenue"
- HTML5 - Semantic markup
- CSS3 - Modern styling with Grid and Flexbox
- JavaScript (ES6+) - Application logic and DOM manipulation
- Font Awesome - Icons and visual elements
- Responsive design for mobile and desktop
- Modern UI with smooth animations
- Real-time SQL generation simulation
- Database connection simulation
- Query result visualization
- Keyboard shortcuts (Ctrl+Enter to execute, Ctrl+Shift+F to format)
Edit the database type dropdown in dashboard.html
:
<select id="dbType" required>
<option value="mysql">MySQL</option>
<option value="postgresql">PostgreSQL</option>
<!-- Add new database types here -->
</select>
Update the callSQLGenerationAPI
method in dashboard.js
:
async callSQLGenerationAPI(naturalLanguage) {
// Add your custom SQL generation logic here
// Connect to actual AI/NLP service
}
Modify CSS custom properties in dashboard.css
:
:root {
--primary-color: #5a39c7;
--secondary-color: #6c757d;
/* Add your brand colors */
}
- Chrome 90+
- Firefox 88+
- Safari 14+
- Edge 90+
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
- β Basic UI/UX implementation
- β SQL generation simulation
- β Database connection interface
- β Query result display
- Integrate with actual NLP/AI service
- Real database connectivity
- User authentication system
- Query optimization engine
- Team collaboration features
- Advanced analytics dashboard
- API endpoints for external integration
- Mobile application
This project is licensed under the MIT License - see the LICENSE file for details.
For support, email support@devquery.com or create an issue in the repository.
- Font Awesome for the beautiful icons
- The open-source community for inspiration and resources
DevQuery - Making database queries as simple as asking a question! π