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 ¶
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
Source Files
¶
- delegate.go
- job_control.go
- show_all_cluster_settings.go
- show_changefeed_jobs.go
- show_completions.go
- show_database_indexes.go
- show_databases.go
- show_default_privileges.go
- show_enums.go
- show_full_table_scans.go
- show_grants.go
- show_jobs.go
- show_partitions.go
- show_queries.go
- show_range_for_row.go
- show_ranges.go
- show_regions.go
- show_role_grants.go
- show_roles.go
- show_schedules.go
- show_schemas.go
- show_sequences.go
- show_sessions.go
- show_survival_goal.go
- show_syntax.go
- show_table.go
- show_tables.go
- show_transactions.go
- show_types.go
- show_var.go
- show_zone_config.go
Click to show internal directories.
Click to hide internal directories.