|
| 1 | +# SQLite Viewer Pro |
| 2 | + |
| 3 | +A lightweight, fast SQLite database browser built with Python and Tkinter. Open, browse, search and query any SQLite database without SQL knowledge. |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | +## Features |
| 10 | + |
| 11 | +- **Table Browser** - Automatically lists all tables with sortable data grid |
| 12 | +- **Schema View** - Inspect CREATE TABLE statements with syntax highlighting |
| 13 | +- **SQL Editor** - Execute custom queries with syntax highlighting and result view |
| 14 | +- **Full-Text Search** - Search across all columns in real-time |
| 15 | +- **CSV Export** - Export any table or query result to CSV |
| 16 | +- **Sorting** - Click column headers to sort ascending/descending |
| 17 | +- **Keyboard Shortcuts** - Ctrl+O (open), Ctrl+F (search), Ctrl+E (export), F5 (refresh), F9 (execute SQL) |
| 18 | + |
| 19 | +## Screenshots |
| 20 | + |
| 21 | +### Data Browser |
| 22 | +Open any `.db`, `.sqlite`, or `.sqlite3` file and browse tables instantly. |
| 23 | + |
| 24 | +### Schema View |
| 25 | +View table definitions with syntax-highlighted CREATE TABLE statements. |
| 26 | + |
| 27 | +### SQL Editor |
| 28 | +Write and execute SQL queries with real-time syntax highlighting. |
| 29 | + |
| 30 | +## Installation |
| 31 | + |
| 32 | +### Requirements |
| 33 | + |
| 34 | +- Python 3.10 or higher |
| 35 | +- Tkinter (included with most Python installations) |
| 36 | + |
| 37 | +No additional dependencies required - uses only Python standard library. |
| 38 | + |
| 39 | +### Run from Source |
| 40 | + |
| 41 | +```bash |
| 42 | +git clone https://github.com/lukisch/SQLiteViewer.git |
| 43 | +cd SQLiteViewer |
| 44 | +python SQLiteViewer.py |
| 45 | +``` |
| 46 | + |
| 47 | +### Windows |
| 48 | + |
| 49 | +Double-click `START.bat` or run: |
| 50 | + |
| 51 | +```cmd |
| 52 | +python SQLiteViewer.py |
| 53 | +``` |
| 54 | + |
| 55 | +## Usage |
| 56 | + |
| 57 | +1. **Open a database**: `File > Open Database` or `Ctrl+O` |
| 58 | +2. **Browse tables**: Select a table from the dropdown |
| 59 | +3. **Search**: Type in the search field to filter rows |
| 60 | +4. **View schema**: Switch to the Schema tab |
| 61 | +5. **Run SQL**: Switch to the SQL Editor tab, write a query, press `F9` |
| 62 | +6. **Export**: `File > Export as CSV` or `Ctrl+E` |
| 63 | + |
| 64 | +## Keyboard Shortcuts |
| 65 | + |
| 66 | +| Shortcut | Action | |
| 67 | +|----------|--------| |
| 68 | +| `Ctrl+O` | Open database | |
| 69 | +| `Ctrl+Q` | Quit | |
| 70 | +| `Ctrl+E` | Export CSV | |
| 71 | +| `Ctrl+F` | Focus search | |
| 72 | +| `Ctrl+A` | Select all rows | |
| 73 | +| `F5` | Refresh table | |
| 74 | +| `F9` | Execute SQL query | |
| 75 | + |
| 76 | +## Comparison |
| 77 | + |
| 78 | +| Feature | SQLite Viewer Pro | DB Browser | DBeaver | |
| 79 | +|---------|:-----------------:|:----------:|:-------:| |
| 80 | +| Instant startup | Yes | Slow | Slow | |
| 81 | +| SQL queries | Yes | Yes | Yes | |
| 82 | +| Browse tables | Yes | Yes | Yes | |
| 83 | +| Schema view | Yes | Yes | Yes | |
| 84 | +| CSV export | Yes | Yes | Yes | |
| 85 | +| Full-text search | Yes | Limited | Yes | |
| 86 | +| Portable | Yes | Partial | No | |
| 87 | +| Lightweight | Yes | No | No | |
| 88 | +| No install needed | Yes | No | No | |
| 89 | + |
| 90 | +## Technical Details |
| 91 | + |
| 92 | +- **Framework**: Tkinter + ttk |
| 93 | +- **Database**: sqlite3 (stdlib) |
| 94 | +- **Dependencies**: None (pure Python stdlib) |
| 95 | +- **Single file**: ~750 lines of Python |
| 96 | + |
| 97 | +## License |
| 98 | + |
| 99 | +[MIT](LICENSE) |
0 commit comments