pgterm is a terminal-based interface (TUI) for PostgreSQL, written in Go. It allows you to connect to a PostgreSQL database, run queries, and browse tables directly from your terminal.
demo.mp4
- Connection Manager: Easily connect to any PostgreSQL database.
- Table Browser: View list of tables in the database.
- SQL Query Editor: Write and execute SQL queries.
- Result Viewer: View query results in a formatted table.
- Keyboard Navigation: Efficient keybindings for quick navigation.
| Key Binding | Action |
|---|---|
Alt + q |
Focus Query Input |
Alt + r |
Focus Results View |
Alt + t |
Focus Tables List |
Alt + Enter |
Execute Query |
Tab / Shift+Tab |
Navigate Up and Down |
You can install pgterm directly using go install:
go install github.com/nabsk911/pgterm@latestMake sure your GOPATH bin directory is in your system PATH.
Run the application:
pgtermThis project is licensed under the MIT License - see the LICENSE file for details.