ui

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrSelectionCancelled = errors.New("table selection cancelled")

ErrSelectionCancelled is returned when the user cancels table selection.

Functions

func PrintError

func PrintError(err error)

PrintError prints an error message

func PrintInfo

func PrintInfo(message string)

PrintInfo prints an informational message

func PrintSuccess

func PrintSuccess(message string)

PrintSuccess prints a success message

func PrintSummary

func PrintSummary(outputFile string, excludedCount int, duration time.Duration, fileSize string)

PrintSummary prints a summary after the dump

func RunInteractiveSelection

func RunInteractiveSelection(tables []database.TableInfo, preSelected []string) ([]string, error)

RunInteractiveSelection runs the interactive table selection

Types

type TableSelectionModel

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

TableSelectionModel represents the interactive table selection UI

func NewTableSelectionModel

func NewTableSelectionModel(tables []database.TableInfo, preSelected []string) TableSelectionModel

NewTableSelectionModel creates a new table selection model

func (TableSelectionModel) GetSelected

func (m TableSelectionModel) GetSelected() []string

GetSelected returns the list of selected table names

func (TableSelectionModel) Init

func (m TableSelectionModel) Init() tea.Cmd

Init initializes the model

func (TableSelectionModel) Update

func (m TableSelectionModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update handles messages

func (TableSelectionModel) View

func (m TableSelectionModel) View() string

View renders the UI

Jump to

Keyboard shortcuts

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