Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Complete ¶
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 ¶
type CompleterInput struct { Query string Schema *schema.Metadata Connections *steampipeconfig.ConnectionDataMap }
CompleterInput :: input interface for the metaquery completer
type HandlerInput ¶
type HandlerInput struct { Query string Executor QueryExecutor Schema *schema.Metadata Connections *steampipeconfig.ConnectionDataMap Prompt *prompt.Prompt ClosePrompt func() }
HandlerInput :: input interface for the metaquery handler
type PromptControl ¶ added in v0.7.0
type PromptControl interface { Clear() Close() }
type QueryExecutor ¶
type QueryExecutor interface { SetSessionSearchPath(...string) error GetCurrentSearchPath() ([]string, error) CacheOn() error CacheOff() error CacheClear() error }
QueryExecutor :: this is a container interface which allows us to call into the db/Client object
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.