SQLite Query Analyzer is a lightweight and efficient desktop utility designed to simplify the process of managing SQLite databases.
It provides an intuitive interface for executing queries and direct table editing, making database operations seamless and straightforward.
- Cross platform - Runs natively on Windows, MacOS, and Linux
- Easy-to-use interface for executing SQL queries
- Fast table data editing
- Persists application state and reloads last session on startup
- Export database schema as CREATE TABLE statements
- Export data as an SQL script containing INSERT statements or as CSV files
- Zoom the query editor and database tree independently, each with its own size, using Ctrl +/- on the focused pane or Ctrl + mouse wheel over it. The query result grid, Messages pane and Table Data grid zoom together with the query editor, and answer both gestures themselves
- Desktop color theme awareness with automatic switching between dark/light themes
- Command line interface for automation and scripting
Invoke-RestMethod https://christianhelle.com/sqlitequery/install.ps1 | Invoke-Expressioncurl -fsSL https://christianhelle.com/sqlitequery/install.sh | bashPre-built binaries for all platforms are available on the GitHub Releases page.
For more detailed installation instructions, visit the Documentation Website.
SQLite Query Analyzer can be used as a command line tool for automating database operations without the GUI. The application supports several command line options for exporting data, executing SQL scripts, and more.
$ sqlitequery --help
Usage: sqlitequery [options] database
A fast and lightweight cross-platform command line and GUI tool for querying and manipulating SQLite databases
Options:
-h, --help Displays help on commandline options.
--help-all Displays help, including generic Qt options.
-v, --version Displays version information.
-p, --progress Show progress during copy
-e, --export-csv Export data to CSV.
-d, --target-directory Target directory for export.
-r, --run-sql Execute SQL file.
Arguments:
database Database file to open.sqlitequery /path/to/database.db# Export all tables to CSV files in the current directory
sqlitequery --export-csv /path/to/database.db
# Export with progress indicator
sqlitequery --export-csv --progress /path/to/database.db
# Export to a specific directory
sqlitequery --export-csv --target-directory /path/to/export/folder /path/to/database.db# Execute a SQL script file against a database
sqlitequery --run-sql /path/to/script.sql /path/to/database.db- Export to CSV: Export all database tables to individual CSV files
- Execute SQL Scripts: Run SQL scripts from files against a database
- Progress Reporting: Show progress indicators for long-running operations
- Flexible Output: Specify custom directories for exported files
Here are some screenshots of SQLite Query Analyzer in action:
- Git 😄
- CMake 3.16 or later - Install from official website
- Qt 6.4.2 or later, 6.11.2 recommended - Install from official website
- Powershell Core (Optional)
git clone https://github.com/christianhelle/sqlitequery.git
cd sqlitequeryUse the Makefile on Linux and macOS, or the cross-platform PowerShell script on Windows:
# Linux / macOS
make# Windows
pwsh build.ps1The build output folder is under build on all platforms. On Linux, make also installs into ./linux/.
Install CMAke and Qt6 and XKB
sudo apt-get update
sudo apt-get install -y cmake qt6-base-dev libxkbcommon-devBuild project
makeCreate installable packages (DEB, RPM, 7Z, ZIP, and compressed archives)
make packageInstall a sqlitequery symlink to ~/.local/bin
make installInstall CMake and Qt6. It's recommended to install Qt using the official installer
brew update
brew install cmake
brew install qt@6Build project
makeBuild MacOS disk image (Optional).
There is a bug in the Homebrew distribution of Qt which causes the use of macdeployqt to fail.
make packageBuild the project (These instructions assumes that Qt root folder is C:\Qt)
cd src
cmake . -DCMAKE_PREFIX_PATH=C:/Qt/6.11.2/msvc2022_64 -DCMAKE_CXX_STANDARD=17 -DCMAKE_CXX_FLAGS="/Zc:__cplusplus /permissive-" -B build
cmake --build build --config Release
C:\Qt\6.11.2\msvc2022_64\bin\windeployqt.exe .\build\Release\SQLiteQueryAnalyzer.exeBuild the installer project using Inno Setup (Optional)
../deps/innosetup/ISCC.exe dist/setup.issWe welcome contributions to SQLite Query Analyzer! If you have any ideas, suggestions, or bug reports, please open an issue or submit a pull request on GitHub.

















