Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Table ¶
type Table struct {
// contains filtered or unexported fields
}
this displays the result of running a select - it needs to handle user input (for scrolling and exiting) - in the future might enable some kind of insert/edit mode... will see
func NewTable ¶
func NewTable(screen tcell.Screen, query *query.SelectQuery) *Table
going to attempt using tabwriter package
func (*Table) CursorDown ¶
func (t *Table) CursorDown()
func (*Table) CursorLeft ¶
func (t *Table) CursorLeft()
func (*Table) CursorRight ¶
func (t *Table) CursorRight()
type View ¶
type View interface {
Draw() // for now this should be enough, although i think there should be a controller
Next() View // switches to new view (e.g. user runs a select, switch to table view)
}
View is a menu item / screen the app can be in example views: - query result table - edit table (edit row/column inplace) - query insert text box
Click to show internal directories.
Click to hide internal directories.