Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrConnectionFormAborted = errors.New("connection form exited with ctrl+c")
Functions ¶
Types ¶
type ConnectModel ¶ added in v0.42.0
type ConnectModel struct {
// contains filtered or unexported fields
}
ConnectModel struct is the main model for the connect feature. Manages the list and the spinner sub-models, keeps track of the app state, and stores the profiles to be returned to the main dblab app.
func (*ConnectModel) Init ¶ added in v0.42.0
func (m *ConnectModel) Init() tea.Cmd
Init method starts with the spinner and fetching the profiles asynchronously.
func (*ConnectModel) Update ¶ added in v0.42.0
Update method manages four different events: Windows re-size to re-calculate the size of the terminal, ctrl+c to exit the form, ctrl+d to delete a profile from the config file, enter to connect to a database profile. It also manages async messages and the menu state.
func (*ConnectModel) View ¶ added in v0.42.0
func (m *ConnectModel) View() tea.View
View method shows the spinner if the data is loading, and the list of profiles if the data is already fetched from the config file.
type DBGraphTreeBuilderProvider ¶ added in v0.39.0
type DBGraphTreeBuilderProvider struct{}
func (*DBGraphTreeBuilderProvider) Children ¶ added in v0.39.0
func (p *DBGraphTreeBuilderProvider) Children(do *client.DBNode) []*client.DBNode
type MetadataPanel ¶ added in v0.41.0
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
type ResultSet ¶ added in v0.38.0
type ResultSet struct {
// contains filtered or unexported fields
}
func NewResultSet ¶ added in v0.38.0
type SidebarViewport ¶ added in v0.38.0
type SidebarViewport struct {
// contains filtered or unexported fields
}
func NewSidebarViewport ¶ added in v0.38.0
func (SidebarViewport) Init ¶ added in v0.38.0
func (s SidebarViewport) Init() tea.Cmd
func (*SidebarViewport) SetSize ¶ added in v0.38.0
func (s *SidebarViewport) SetSize(w, h int)
func (SidebarViewport) Update ¶ added in v0.38.0
func (s SidebarViewport) Update(msg tea.Msg) (SidebarViewport, tea.Cmd)
func (SidebarViewport) View ¶ added in v0.38.0
func (s SidebarViewport) View() string
type TablePanel ¶ added in v0.41.0
type TablePanel struct {
// contains filtered or unexported fields
}
func (*TablePanel) Init ¶ added in v0.41.0
func (t *TablePanel) Init() tea.Cmd
func (*TablePanel) View ¶ added in v0.41.0
func (t *TablePanel) View() tea.View