-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathalter_server_configuration_statement.go
More file actions
41 lines (31 loc) · 1.41 KB
/
alter_server_configuration_statement.go
File metadata and controls
41 lines (31 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package ast
// AlterServerConfigurationStatement represents ALTER SERVER CONFIGURATION SET PROCESS AFFINITY statement
type AlterServerConfigurationStatement struct {
ProcessAffinity string // "CpuAuto", "Cpu", "NumaNode"
ProcessAffinityRanges []*ProcessAffinityRange // for Cpu or NumaNode
}
func (a *AlterServerConfigurationStatement) node() {}
func (a *AlterServerConfigurationStatement) statement() {}
// ProcessAffinityRange represents a CPU or NUMA node range
type ProcessAffinityRange struct {
From ScalarExpression // IntegerLiteral
To ScalarExpression // IntegerLiteral (optional)
}
func (p *ProcessAffinityRange) node() {}
// AlterServerConfigurationSetSoftNumaStatement represents ALTER SERVER CONFIGURATION SET SOFTNUMA statement
type AlterServerConfigurationSetSoftNumaStatement struct {
Options []*AlterServerConfigurationSoftNumaOption
}
func (a *AlterServerConfigurationSetSoftNumaStatement) node() {}
func (a *AlterServerConfigurationSetSoftNumaStatement) statement() {}
// AlterServerConfigurationSoftNumaOption represents SOFTNUMA option
type AlterServerConfigurationSoftNumaOption struct {
OptionKind string // "OnOff"
OptionValue *OnOffOptionValue
}
func (a *AlterServerConfigurationSoftNumaOption) node() {}
// OnOffOptionValue represents ON/OFF option value
type OnOffOptionValue struct {
OptionState string // "On" or "Off"
}
func (o *OnOffOptionValue) node() {}