Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
Pool *pgxpool.Pool
TableList list.Model
TableData table.Model
SelectedTable string
Tables []string
ColumnNames []string
Data [][]string
FilteredData [][]string
Width int
Height int
Focused int // 0: table list, 1: table data, 2: detail view
SearchMode bool
SearchInput textinput.Model
SearchQuery string
ShowHelp bool
Help help.Model
Err error
SelectedRow int
SelectedRowData map[string]string // Column name -> value
ConnectionDetails string
HorizontalScrollOffset int // Track horizontal scroll position
}
Model represents the application state
type TableItem ¶
type TableItem struct {
Name string
}
TableItem represents a database table in the list
func (TableItem) Description ¶
Description returns the description of the item
func (TableItem) FilterValue ¶
FilterValue returns the value to filter on
Click to show internal directories.
Click to hide internal directories.