qh

package
v0.0.0-...-4fef700 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigModel

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

func NewViewModel

func NewViewModel(executorService *SqlExecutorService) ConfigModel

func (ConfigModel) Init

func (r ConfigModel) Init() tea.Cmd

func (ConfigModel) Update

func (r ConfigModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (ConfigModel) View

func (r ConfigModel) View() string

type ResultModel

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

func NewResultModel

func NewResultModel(resultSet [][]string) ResultModel

func (ResultModel) Init

func (m ResultModel) Init() tea.Cmd

func (ResultModel) Update

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

func (ResultModel) View

func (m ResultModel) View() string

type SqlExecutorService

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

func NewSqlExecutorService

func NewSqlExecutorService(loadTemplates bool) (*SqlExecutorService, error)

func (*SqlExecutorService) ConfigIsEmpty

func (r *SqlExecutorService) ConfigIsEmpty() bool

func (*SqlExecutorService) ListAvailableQueries

func (r *SqlExecutorService) ListAvailableQueries() []string

func (*SqlExecutorService) Run

func (r *SqlExecutorService) Run(queryName string, queryData executor.QueryData) ([][]string, error)

func (*SqlExecutorService) WriteConfig

func (r *SqlExecutorService) WriteConfig(config executor.SqlExecutorConfig) error

Jump to

Keyboard shortcuts

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