Skip to content

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.

Notifications You must be signed in to change notification settings

akifzdemir/postgres-tui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PostgreSQL TUI with Bubble Tea

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.

Features

  • Connect to a PostgreSQL database
  • Display data from a selected table
  • Navigate through the table using keyboard keys
  • Delete records from the table

gif

Prerequisites

  • Go
  • PostgreSQL database

To do

  • Add create, update record
  • Add create,delete database
  • Refactor error handling

Installation

  1. Clone the repository

    git clone https://github.com/akifzdemir/postgres-tui.git
    cd postgres-tui
  2. Install dependencies

    Ensure you have the necessary Go modules:

    go mod tidy
  3. Run the application

    go run main.go

Code Structure

  • 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.

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages