Documentation
¶
Index ¶
- Constants
- type CellPosition
- type Model
- func (m Model) GetEditedQuery() db.Query
- func (m Model) GetSelectedTableName() string
- func (m Model) Init() tea.Cmd
- func (m Model) SetStatusMessage(msg string) Model
- func (m Model) SetTablesList(onSelect func(string) tea.Cmd) Model
- func (m Model) ShouldRerunQuery() bool
- func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (m Model) View() string
Constants ¶
View Source
const ( CursorAtUpdateValue cursorPositionHint = iota // Inside the value in UPDATE SET col = 'value' CursorAtWhereClause // Inside the value in WHERE col = 'value' CursorAtEndOfFile // At the end of the file )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CellPosition ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
func Render ¶
func Render( columns []string, columnTypes []string, data [][]string, elapsed time.Duration, conn db.DatabaseConnection, tableName, primaryKeyCol string, query db.Query, columnWidth int, visibility config.UIVisibility, saveCallback func(query db.Query) (db.Query, error), initialStatus ...string, ) (Model, error)
func RenderTablesList ¶
func (Model) GetEditedQuery ¶
func (Model) GetSelectedTableName ¶
func (Model) SetStatusMessage ¶
func (Model) ShouldRerunQuery ¶
Click to show internal directories.
Click to hide internal directories.