-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathalter_table_set_statement.go
More file actions
46 lines (37 loc) · 1.4 KB
/
alter_table_set_statement.go
File metadata and controls
46 lines (37 loc) · 1.4 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
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() {}