ui

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2026 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

App holds all TUI state for the dbterm application

func NewApp

func NewApp() *App

NewApp creates a new dbterm application instance

func (*App) DirectConnect

func (a *App) DirectConnect(dbType config.DBType, dsn, name string) error

DirectConnect connects to a database using provided parameters

func (*App) ExecuteQuery

func (a *App) ExecuteQuery(query string)

ExecuteQuery runs a SQL query and displays results or affected row count

func (*App) LoadResults

func (a *App) LoadResults() error

LoadResults loads data from the selected table into the results view

func (*App) LoadTables

func (a *App) LoadTables() error

LoadTables fetches the list of tables from the connected database

func (*App) Run

func (a *App) Run() error

Run starts the application

func (*App) ShowAlert

func (a *App) ShowAlert(message string, returnPage string)

ShowAlert displays a modal alert and returns to returnPage when dismissed

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL