delegate

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2022 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ValidVars = make(map[string]struct{})

ValidVars contains the set of variable names; initialized from the SQL package.

Functions

func RunShowCompletions

func RunShowCompletions(stmt string, offset int) ([]string, error)

RunShowCompletions returns a list of completion keywords for the given statement and offset.

func TryDelegate

func TryDelegate(
	ctx context.Context, catalog cat.Catalog, evalCtx *tree.EvalContext, stmt tree.Statement,
) (tree.Statement, error)

TryDelegate takes a statement and checks if it is one of the statements that can be rewritten as a lower level query. If it can, returns a new AST which is equivalent to the original statement. Otherwise, returns nil.

Types

type ControlJobsDelegate

type ControlJobsDelegate struct {
	Command tree.JobCommand

	// One and only one of these should be non-empty
	Schedules *tree.Select
	Type      string
}

ControlJobsDelegate is a struct with options for delegate.delegateJobControl

Jump to

Keyboard shortcuts

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