Note: This is experimental software provided "as-is".
A cross-platform GUI application for PostgreSQL monitoring with customizable queries and real-time data visualization.
Tired of running the same database queries manually? SQLDashboard automates your routine data checks, giving you instant visibility without repetitive work.
We take multiple SQL queries to the database and store them in a config. Based on this config, the application is built, allowing us to instantly view all the results.
- 🖥️ Supports Windows, macOS and Linux
- ⚡ Automatic data refresh
- 📊 Customizable dashboard with tabs
- 🔍 Query results in sortable tables
- ⚙️ JSON configuration file
- 🔄 Configurable refresh intervals
- Go 1.20+
- PostgreSQL libraries (
libpq) - Git (for dependency management)
git clone https://github.com/razielsd/sqldashboard.git
cd sqldashboard
go build -o sqldashboardWindows (GUI application):
go build -ldflags="-H windowsgui" -o sqldashboard.exeWindows (console version):
go build -o sqldashboard.exemacOS:
go build -o sqldashboardLinux:
go build -o sqldashboardCross-compile for Windows from Linux/macOS:
GOOS=windows GOARCH=amd64 go build -o sqldashboard.exeCreate a config.json file in the same directory as the executable. Example configuration:
{
"refreshTimeout": "1m",
"defaultConnection": {
"host": "localhost",
"port": "5432",
"user": "username",
"password": "password",
"database": "your-database"
},
"areas": [
{
"title": "Database Overview",
"refreshTimeout": "30s",
"tabs": [
{
"title": "Table Statistics",
"query": "SELECT 'customers' FROM customers ORDER BY created_at LIMIT 10",
"refreshTimeout": "1m"
}
]
}
]
}refreshTimeout: Global refresh interval (e.g. "30s", "1m", "5m")defaultConnection: PostgreSQL connection parametersareas: Dashboard sections- Each section contains tabs with SQL queries
- Each tab can override the refresh interval
- Configure connections and queries in
config.json - Run the application:
- Windows: Double-click
sqldashboard.exeor run from command line - macOS/Linux:
./sqldashboard
- Windows: Double-click
- Navigation:
- Left panel: Sections and tabs
- Right panel: Query results
- Interaction:
- Adjust column widths with mouse
- Copy cell contents (Ctrl+C)
- Data auto-refreshes according to settings
PostgreSQL connection errors:
- Ensure PostgreSQL server is running
- Verify connection parameters in
config.json - Install PostgreSQL client libraries if needed
Missing dependencies:
go mod tidy
go mod vendorWindows-specific:
- For
libpq.dllerrors, install PostgreSQL for Windows - Or copy
libpq.dllto the application directory
MIT License. See LICENSE for details.