Skip to content

sunpebble/sql-pro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1,123 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

SQL Pro

SQL Pro Logo

Professional SQLite database manager with SQLCipher support and diff preview

Release License Build Status Documentation

πŸš€ A modern, cross-platform SQLite database manager built with Electron, React, and TypeScript. Features include encrypted database support, visual diff preview for changes, AI-powered query tools, and comprehensive internationalization.

✨ Features

πŸ—„οΈ Database Management

  • SQLite & SQLCipher support
  • Encrypted databases with secure password storage
  • Multiple connections with tab-based interface
  • Connection profiles for quick access

πŸ“ Query Tools

  • Monaco editor with syntax highlighting
  • Intelligent autocomplete for tables and columns
  • Vim mode for power users
  • Query history with search and rerun

✏️ Data Operations

  • Inline editing in data grid
  • Diff preview before applying changes
  • Bulk operations for multiple rows
  • Advanced filtering across all columns

πŸ€– AI Integration

  • Natural Language to SQL conversion
  • Multiple AI providers (Anthropic, OpenAI, Custom)
  • Claude Code integration for advanced queries
  • Per-provider settings with independent configuration

🎨 Visualization

  • ER diagrams with relationships
  • Schema browser with structure view
  • Dark/Light theme auto-switching
  • Customizable keyboard shortcuts

🌍 Internationalization

  • Multi-language support (English, Chinese)
  • Full UI translation coverage
  • Locale-aware formatting

πŸ“š View full documentation β†’

πŸ“¦ Installation

Quick Start

Download the latest release for your platform:

Platform Download Architecture
🍎 macOS (Universal) sql-pro-x.x.x.dmg M1/M2/M3/M4 + Intel
πŸͺŸ Windows sql-pro-x.x.x-setup.exe x64
🐧 Linux (AppImage) sql-pro-x.x.x.AppImage x64
🐧 Linux (deb) sql-pro-x.x.x.deb x64

πŸ’‘ New to SQL Pro? Check out our Getting Started Guide for detailed installation instructions and first-time setup.

Build from Source

Prerequisites: Node.js 24+, pnpm 10+

Using nvm? Run nvm install 24 && nvm use 24 to switch to the required version.

# Clone the repository
git clone https://github.com/kunish-homelab/sql-pro.git
cd sql-pro

# Install dependencies
pnpm install

# Development mode
pnpm dev

# Build for your platform
pnpm build:mac    # macOS
pnpm build:win    # Windows
pnpm build:linux  # Linux

πŸ”§ For development setup and contribution guidelines, see CONTRIBUTING.md

πŸš€ Quick Usage

  1. Open a Database β†’ Click "Open Database" or press Cmd/Ctrl + O
  2. Browse Schema β†’ Navigate tables and views in the sidebar
  3. Query Data β†’ Write SQL in the editor and press Cmd/Ctrl + Enter
  4. Edit Data β†’ Double-click cells to edit, review changes in diff preview
  5. Apply Changes β†’ Click "Apply Changes" or press Cmd/Ctrl + S

Essential Keyboard Shortcuts

Action macOS Windows/Linux
Execute query Cmd + Enter Ctrl + Enter
Apply changes Cmd + S Ctrl + S
Open database Cmd + O Ctrl + O
Command palette Cmd + K Ctrl + K
Toggle sidebar Cmd + B Ctrl + B

⌨️ See all shortcuts β†’

πŸ› οΈ Development

Project Structure

sql-pro/
β”œβ”€β”€ apps/
β”‚   β”œβ”€β”€ electron/           # Electron application
β”‚   β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”‚   β”œβ”€β”€ main/       # Main process (Node.js)
β”‚   β”‚   β”‚   β”œβ”€β”€ preload/    # Preload scripts
β”‚   β”‚   β”‚   β”œβ”€β”€ renderer/   # React frontend
β”‚   β”‚   β”‚   └── shared/     # Shared types
β”‚   β”‚   └── resources/      # App icons and assets
β”‚   └── website/            # Official website
β”œβ”€β”€ packages/
β”‚   β”œβ”€β”€ docs/               # VitePress documentation
β”‚   β”œβ”€β”€ plugin-sdk/         # Plugin development SDK
β”‚   β”œβ”€β”€ tsconfig/           # Shared TypeScript configs
β”‚   └── ui/                 # Shared UI components
└── nx.json                 # Nx monorepo configuration

Available Scripts

# Development
pnpm dev              # Start dev server

# Building
pnpm build            # Build application
pnpm build:mac        # Build for macOS
pnpm build:win        # Build for Windows
pnpm build:linux      # Build for Linux

# Code Quality
pnpm lint             # Run ESLint
pnpm format           # Format with Prettier
pnpm typecheck        # TypeScript type checking

# Testing
pnpm test             # Run tests in watch mode
pnpm test:run         # Run tests once
pnpm test:coverage    # Generate coverage report

# Documentation
pnpm docs:dev         # Start docs dev server
pnpm docs:build       # Build documentation

πŸ“– For detailed development guidelines, see CONTRIBUTING.md

🀝 Contributing

We welcome contributions! Whether you're fixing bugs, adding features, or improving documentation, your help is appreciated.

How to Contribute

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'feat: add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Development Setup

git clone https://github.com/YOUR_USERNAME/sql-pro.git
cd sql-pro
pnpm install
pnpm dev

Please read CONTRIBUTING.md for detailed guidelines, including:

  • Code style and conventions
  • Testing requirements
  • Commit message format
  • Pull request process

πŸ—ΊοΈ Roadmap

We're actively developing SQL Pro with exciting features planned. See our detailed roadmap for the full list.

Current Focus (Q1 2025)

  • πŸ”Œ Plugin System - Extensible architecture for custom functionality
  • πŸ“Š Query Optimizer - AI-powered query analysis and suggestions
  • πŸ”„ Schema Comparison - Compare and sync database schemas
  • πŸ“₯ Data Import/Export - Enhanced CSV, JSON, and Excel support
  • πŸ” Full-text Search - Fast search across all database content

Completed βœ“

  • βœ… Vim mode support (Editor & App navigation)
  • βœ… Customizable keyboard shortcuts
  • βœ… Bulk edit operations
  • βœ… Query history with search
  • βœ… ER diagram visualization
  • βœ… AI-powered Natural Language to SQL
  • βœ… Multi-language support (i18n)
  • βœ… Per-provider AI settings

πŸ’‘ Have a feature idea? Open a feature request

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ”’ Security

Found a vulnerability? Please see our Security Policy for responsible disclosure guidelines.

πŸ™ Acknowledgments

SQL Pro is built with amazing open-source technologies:

Special thanks to all contributors who have helped make SQL Pro better!


Built with ❀️ by the SQL Pro team
Documentation β€’ Issues β€’ Discussions β€’ Releases

About

Professional SQLite database manager with SQLCipher support and diff preview

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages