should be it
This commit is contained in:
19
external/duckdb/extension/autocomplete/grammar/statements/set.gram
vendored
Normal file
19
external/duckdb/extension/autocomplete/grammar/statements/set.gram
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
SetStatement <- 'SET' (StandardAssignment / SetTimeZone)
|
||||
|
||||
StandardAssignment <- (SetVariable / SetSetting) SetAssignment
|
||||
SetTimeZone <- 'TIME' 'ZONE' Expression
|
||||
SetSetting <- SettingScope? SettingName
|
||||
SetVariable <- VariableScope Identifier
|
||||
VariableScope <- 'VARIABLE'
|
||||
|
||||
SettingScope <- LocalScope / SessionScope / GlobalScope
|
||||
LocalScope <- 'LOCAL'
|
||||
SessionScope <- 'SESSION'
|
||||
GlobalScope <- 'GLOBAL'
|
||||
|
||||
SetAssignment <- VariableAssign VariableList
|
||||
|
||||
VariableAssign <- '=' / 'TO'
|
||||
VariableList <- List(Expression)
|
||||
|
||||
ResetStatement <- 'RESET' (SetVariable / SetSetting)
|
||||
Reference in New Issue
Block a user