Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SQLCompleter ¶
type SQLCompleter struct {
// contains filtered or unexported fields
}
SQLCompleter provides SQL autocomplete functionality
func NewSQLCompleter ¶
func NewSQLCompleter(storage storage.Storage) *SQLCompleter
NewSQLCompleter creates a new SQL completer
func (*SQLCompleter) Do ¶
func (c *SQLCompleter) Do(line []rune, pos int) (newLine [][]rune, length int)
Complete implements the readline.AutoCompleter interface
func (*SQLCompleter) GetCompleter ¶
func (c *SQLCompleter) GetCompleter() readline.AutoCompleter
GetCompleter returns a readline completer function
func (*SQLCompleter) RefreshSchema ¶
func (c *SQLCompleter) RefreshSchema() error
RefreshSchema updates the table and column information from storage
type SQLHighlighter ¶
type SQLHighlighter struct {
// contains filtered or unexported fields
}
SQLHighlighter provides SQL syntax highlighting
func NewSQLHighlighter ¶
func NewSQLHighlighter() *SQLHighlighter
NewSQLHighlighter creates a new SQL highlighter
func (*SQLHighlighter) Highlight ¶
func (h *SQLHighlighter) Highlight(sql string) string
Highlight applies syntax highlighting to a SQL string
func (*SQLHighlighter) HighlightPrompt ¶
func (h *SQLHighlighter) HighlightPrompt(prompt string) string
HighlightPrompt returns a highlighted version of the prompt
Click to show internal directories.
Click to hide internal directories.