Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Complete ¶ added in v0.0.16
func Complete(input *CompleterInput) []prompt.Suggest
Complete :: return completions for metaqueries.
func IsMetaQuery ¶
IsMetaQuery :: returns true if the query is a metaquery, false otherwise
func PromptSuggestions ¶
func PromptSuggestions() []prompt.Suggest
PromptSuggestions :: Returns a list of the suggestions for go-prompt
Types ¶
type CompleterInput ¶ added in v0.0.16
type CompleterInput struct { Query string Schema *schema.Metadata Connections *connection_config.ConnectionMap }
CompleterInput :: input interface for the metaquery completer
type HandlerInput ¶
type HandlerInput struct { Query string Schema *schema.Metadata Connections *connection_config.ConnectionMap Prompt *prompt.Prompt }
HandlerInput :: input interface for the metaquery handler
type ValidationResult ¶
ValidationResult :: response for Validate
func Validate ¶
func Validate(query string) ValidationResult
Validate :: validate a full metaquery along with arguments - we can return err & validationResult
Click to show internal directories.
Click to hide internal directories.