repl

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2026 License: MIT Imports: 5 Imported by: 0

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

Jump to

Keyboard shortcuts

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