DB Browser for SQLite Overview
DB Browser for SQLite is an open-source, cross-platform graphical tool for creating, designing, and editing SQLite database files. It provides an intuitive spreadsheet-like interface that enables users and developers to manage databases without needing deep SQL knowledge. Key capabilities include:
- Create, compact, and modify database files
- Design tables, indexes, and manage records
- Import/export data from CSV files and SQL dumps
- Execute SQL queries and visualize results
- Generate plots from table data
Installation
Installation varies by operating system. On Arch Linux, use:
sudo pacman -S sqlitebrowser
Once installed, launch the application from your system menu.
Interface Layout
The interface consists of five main areas, all customizable through the View menu:
- Main Menu Bar
- Toolbar Section
- Left Panel with Database Tabs
- Right Upper Database Edit Pane
- Right Lower Auxiliary Panes
To reset the layout to default: View → Windows Layout → Reset Windows Layout (Alt+0)
Main Menu Functions
The top menu provides access to:
- File operations (new/open database, save projects)
- Edit operations (table/index creation/modification)
- View controls (show/hide interface elements)
- Tools including database maintenance operations: ```
Integrity Check: PRAGMA integrity_check
Quick Check: PRAGMA quick_check
Foreign Key Check: PRAGMA foreign_key_check
Optimize: PRAGMA optimize
Database Structure Tab
The left panel contains four tabs for different database operations:
- Database Structure: View table and column definitions
- Browse Data: Navigate and filter table contents
- Edit Pragmas: Configure database-wide parameters
- Execute SQL: Write and run custom SQL queries
Data Types and Storage Classes
SQLite uses dynamic typing with the folowing storage classes:
| Storage Class | Description |
|---|---|
| NULL | Null value |
| INTEGER | Signed integer (1-8 bytes) |
| REAL | 8-byte IEEE floating point |
| TEXT | String data |
| BLOB | Binary data stored exactly as input |
Display and Conditional Formatting
Right-click column headers to access display formatting options that transform how data appears without altering stored values. Conditional formatting allows cell styling based on values using comparison operators and regular expressions.
Encoding Support
While SQLite stores text as UTF-8 by default, DB Browser can display data in various encodings (ISO-8859-1, IBM851, etc.). Set encodings via right-click → Set Encoding and save to project files.
Regular Expression Support
Use regex patterns in WHERE clauses with the REGEXP operator:
SELECT * FROM Products WHERE Description REGEXP '(?i)(kg)$';
Modifiers include: i (case-insensitive), m (multiline), s (dot matches newline), U (greediness swap).
Project Files
Project files (.sqbpro) store database session state including:
- Open database connections
- Pragma settings
- Active tabs and SQL queries
- Browse data filters and display formats
- Plot configurations
Data Plotting
Generate graphs from table data or SQL query results. Select X and Y axis columns, then customize line types and point shapes.
Filtering System
The filter row between column headers and data enables quick filtering:
- =value for exact matches
- % as wildcard character
- ~ for numeric ranges (e.g., 1~5)
- /regex/ for regular expression matching
- Combine filters across multiple columns with AND logic