Real-time SQL workflow monitoring with intelligent query management and automation
Features β’ User Guide β’ Documentation β’ Contributing
- Query Library: Store and categorize SQL queries with rich metadata
- Advanced Search: Filter by category, tags, author, database type, and more
- Query Editor: Full-featured SQL editor with Monaco (VS Code editor)
- Syntax highlighting for multiple database types
- Auto-completion and IntelliSense
- Query formatting and beautification
- Parameter support with placeholders
- Version Control: Track query changes and maintain history
- Query Collections: Organize queries into folders and collections
- Favorites: Quick access to frequently used queries
- Support for multiple database types:
- SQL Server
- MySQL
- PostgreSQL
- Oracle (with additional setup)
- Secure credential storage with AES-256 encryption
- Connection testing and validation
- Environment tagging (Dev, QA, UAT, Production)
- Connection pooling configuration
- Execute queries with real-time parameter input
- Live execution progress tracking
- Detailed execution metrics (time, rows affected)
- Result preview with pagination
- Export results to CSV, Excel, JSON
- Transaction support with commit/rollback
- Dry-run mode for dangerous operations
- One-time: Execute at specific date/time
- Daily: Every N days at specific time
- Weekly: Select days of week
- Monthly: Specific date or last day of month
- Hourly: Every N hours
- Custom: Full cron expression support
- Visual cron expression builder
- Timezone support for global teams
- Dynamic parameters (@TODAY, @YESTERDAY, etc.)
- Job dependencies and chains
- Retry logic with exponential backoff
- Priority-based queue management
- Concurrent execution limits
- Real-time dashboard with key metrics
- Live job execution monitor
- Execution history and audit trail
- Performance analytics and trends
- Success/failure rate tracking
- Query performance comparison
- Scheduled job calendar view
Support for multiple channels:
- Email (SMTP)
- Slack
- Microsoft Teams
- Discord
- Custom Webhooks
- SMS (via Twilio)
Trigger notifications on:
- Success
- Failure
- Specific conditions (row count, duration)
- Daily summary reports
- JWT-based authentication with secure token management
- Role-based access control (RBAC) with principle of least privilege
- Admin: Full system access
- Developer: Query creation and scheduling
- Analyst: Query execution only
- Read-Only: View-only access (default for new users)
- AES-256 encrypted credential storage for all database connections
- New users default to Read-Only for security (contact admin for upgrade)
- Complete audit trail for all operations and data access
- Production database protection with read-only mode enforcement
- Query approval workflow for destructive operations (UPDATE/DELETE/DROP)
- Rate limiting on all API endpoints to prevent abuse
- SQL injection prevention through parameterized queries
- Input validation and sanitization on all user inputs
β οΈ Security Notice: This application handles sensitive database credentials and can execute arbitrary SQL queries. Ensure proper access controls, use strong passwords, and follow security best practices outlined in SECURITY.md.
βββββββββββββββββββββββββββββββββββββββ
β Frontend (React) β
β - Dashboard, Query Editor, etc. β
ββββββββββββββββ¬βββββββββββββββββββββββ
β HTTP/REST API
ββββββββββββββββΌβββββββββββββββββββββββ
β Backend API (Express) β
β - Authentication, CRUD, Execution β
ββββββββββββ¬βββββββββββ¬ββββββββββββββββ
β β
βΌ βΌ
ββββββββββββ ββββββββββββ
βPostgreSQLβ β Redis β
β (App DB) β β (Queue) β
ββββββββββββ βββββββ¬βββββ
β
βββββββββββΌββββββββββ
β Scheduler Worker β
β - Job Processing β
β - Query Executionβ
βββββββββββ¬ββββββββββ
β
βββββββββββΌββββββββββ
β Target Databases β
β (SQL Server, etc.)β
βββββββββββββββββββββ
- React 18 with TypeScript
- Tailwind CSS for styling
- Monaco Editor for SQL editing
- Zustand for state management
- React Query for data fetching
- React Router for navigation
- Recharts for analytics visualization
- Node.js with Express
- TypeScript for type safety
- Sequelize ORM for database operations
- JWT for authentication
- bcrypt for password hashing
- Winston for logging
- Bull queue with Redis
- node-cron for scheduling
- Multiple database drivers (mssql, mysql2, pg, oracledb)
- PostgreSQL 14+ for application data
- Redis 7+ for job queue and caching
- Docker & Docker Compose
- Nginx for reverse proxy
The dashboard provides an at-a-glance view:
- Execution statistics (today, this week, this month)
- Success/failure rates
- Currently running jobs
- Upcoming scheduled executions (next 6 hours)
- Recent query executions
- Favorite queries
Browse and manage all your queries:
- Search & Filter: By category, tags, database type, author
- Sort: By name, created date, execution count, etc.
- Quick Actions: Execute, edit, schedule, favorite, delete
- Bulk Operations: Export, duplicate, share
Powerful SQL editing experience:
- Syntax Highlighting: Language-specific
- Auto-complete: Table and column suggestions
- Format: Beautify SQL code
- Parameters: Use @ParamName placeholders
- Execute: Run with parameter input
- Save Versions: Track changes over time
Comprehensive scheduling interface:
- Calendar View: See all scheduled queries
- List View: Detailed schedule information
- Create Schedule: Step-by-step wizard
- Manage Schedules: Enable/disable, edit, delete, run now
- Monitor: Real-time execution status
Complete audit trail:
- Filter: By date range, query, status, user
- View Details: Parameters, execution time, rows affected
- Re-execute: Run again with same or different parameters
- Export Results: Download previous execution results
- Analyze Trends: Performance over time
Secure database credentials:
- Add/Edit: Configure connection details
- Test: Verify connectivity before saving
- Status: View active connections
- Permissions: Control user access
Contributions are welcome! Please follow these steps:
- 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
For detailed guidelines, see CONTRIBUTING.md
Note: Please review SECURITY.md before contributing security-related changes.
Full API documentation is available at /api-docs when running the backend server.
POST /api/auth/login
POST /api/auth/register
GET /api/auth/me
GET /api/queries
POST /api/queries
GET /api/queries/:id
PUT /api/queries/:id
DELETE /api/queries/:id
POST /api/queries/:id/execute
GET /api/queries/search
GET /api/schedules
POST /api/schedules
GET /api/schedules/:id
PUT /api/schedules/:id
DELETE /api/schedules/:id
POST /api/schedules/:id/enable
POST /api/schedules/:id/disable
POST /api/schedules/:id/run-now
GET /api/schedules/upcoming
- ποΈ Architecture & Project Structure - System design and folder structure
- π Security Policy - Security best practices and reporting
- π₯ User Access & Roles - Role permissions and upgrade requests
- π€ Contributing Guide - How to contribute to the project
- π Changelog - Version history and updates
This project is licensed under the MIT License - see the LICENSE file for details.
For questions, feedback, or issues, please use GitHub Issues.
β οΈ IMPORTANT: For security vulnerabilities, DO NOT create a public issue. Instead, follow the responsible disclosure process outlined in SECURITY.md.
This is a personal project for SQL query management and automation. Use at your own risk.
- Database Access: This application can execute arbitrary SQL queries on connected databases. Ensure proper access controls and permissions.
- Production Use: Thoroughly test in a non-production environment before deploying to production.
- Data Security: You are responsible for securing database credentials, configuring authentication, and following security best practices.
- No Warranty: This software is provided "as is" without warranty of any kind. See LICENSE for details.
Made with β€οΈ for database administrators, analysts, and developers
/api-docs when running the backend server.οΏ½ Documentation
- ποΈ Architecture & Project Structure - System design and folder structure
- π Security Policy - Security best practices and reporting
- π€ Contributing Guide - How to contribute to the project
- π Changelog - Version history and updates