-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathalter_table_set_statement.go
More file actions
73 lines (58 loc) · 2.27 KB
/
alter_table_set_statement.go
File metadata and controls
73 lines (58 loc) · 2.27 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
package ast
// AlterTableSetStatement represents ALTER TABLE ... SET statement
type AlterTableSetStatement struct {
SchemaObjectName *SchemaObjectName
Options []TableOption
}
func (s *AlterTableSetStatement) statement() {}
func (s *AlterTableSetStatement) node() {}
// TableOption is an interface for table options
type TableOption interface {
Node
tableOption()
}
// SystemVersioningTableOption represents SYSTEM_VERSIONING option
type SystemVersioningTableOption struct {
OptionState string // "On", "Off"
ConsistencyCheckEnabled string // "On", "Off", "NotSet"
HistoryTable *SchemaObjectName
RetentionPeriod *RetentionPeriodDefinition
OptionKind string // Always "LockEscalation"
}
func (o *SystemVersioningTableOption) tableOption() {}
func (o *SystemVersioningTableOption) node() {}
// RetentionPeriodDefinition represents the history retention period
type RetentionPeriodDefinition struct {
Duration ScalarExpression
Units string // "Day", "Week", "Month", "Months", "Year"
IsInfinity bool
}
func (r *RetentionPeriodDefinition) node() {}
// MemoryOptimizedTableOption represents MEMORY_OPTIMIZED option
type MemoryOptimizedTableOption struct {
OptionKind string // "MemoryOptimized"
OptionState string // "On", "Off"
}
func (o *MemoryOptimizedTableOption) tableOption() {}
func (o *MemoryOptimizedTableOption) node() {}
// DurabilityTableOption represents a DURABILITY table option
type DurabilityTableOption struct {
OptionKind string // "Durability"
DurabilityTableOptionKind string // "SchemaOnly", "SchemaAndData"
}
func (o *DurabilityTableOption) tableOption() {}
func (o *DurabilityTableOption) node() {}
// LockEscalationTableOption represents LOCK_ESCALATION option
type LockEscalationTableOption struct {
OptionKind string // "LockEscalation"
Value string // "Auto", "Table", "Disable"
}
func (o *LockEscalationTableOption) tableOption() {}
func (o *LockEscalationTableOption) node() {}
// FileStreamOnTableOption represents FILESTREAM_ON option
type FileStreamOnTableOption struct {
OptionKind string // "FileStreamOn"
Value *IdentifierOrValueExpression
}
func (o *FileStreamOnTableOption) tableOption() {}
func (o *FileStreamOnTableOption) node() {}