sql

package
v5.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InteractiveShell bool

InteractiveShell parameter to enable shell as interactive

View Source
var LivePrefixState struct {
	LivePrefix string
	IsEnable   bool
}

LivePrefixState is a container for the interactive prompt state

Functions

func Completer

func Completer(d prompt.Document) []prompt.Suggest

Completer sql completer

func NewLiveLSQLCommand

func NewLiveLSQLCommand() *cobra.Command

NewLiveLSQLCommand creates `query` command

Types

type Executor

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

Executor sturct

func NewExecutor

func NewExecutor(interactiveCmd *cobra.Command, client *api.Client, sqlHistoryPath string) *Executor

NewExecutor creates a new executor

func (*Executor) ChangeLivePrefix

func (e *Executor) ChangeLivePrefix() (string, bool)

ChangeLivePrefix changes the prefix

func (*Executor) Execute

func (e *Executor) Execute(sql string)

Execute execute an SQL query

Jump to

Keyboard shortcuts

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