This is a terminal user interface (TUI) application built with Bubble Tea that connects to a PostgreSQL database and displays data in a table format.
- Connect to a PostgreSQL database
- Display data from a selected table
- Navigate through the table using keyboard keys
- Delete records from the table
- Go
- PostgreSQL database
- Add create, update record
- Add create,delete database
- Refactor error handling
-
Clone the repository
git clone https://github.com/akifzdemir/postgres-tui.git cd postgres-tui
-
Install dependencies
Ensure you have the necessary Go modules:
go mod tidy
-
Run the application
go run main.go
-
main.go: The entry point of the application. Connects to the database and initializes the TUI.
-
models/: Contains the Bubble Tea models for managing the TUI states and interactions.
-
constants.go: Defines constant values used across the application.