File tree Expand file tree Collapse file tree 4 files changed +23
-22
lines changed Expand file tree Collapse file tree 4 files changed +23
-22
lines changed Original file line number Diff line number Diff line change @@ -28,23 +28,23 @@ type RowsEstimateMethod string
28
28
29
29
const (
30
30
TableStatusRowsEstimate RowsEstimateMethod = "TableStatusRowsEstimate"
31
- ExplainRowsEstimate = "ExplainRowsEstimate"
32
- CountRowsEstimate = "CountRowsEstimate"
31
+ ExplainRowsEstimate RowsEstimateMethod = "ExplainRowsEstimate"
32
+ CountRowsEstimate RowsEstimateMethod = "CountRowsEstimate"
33
33
)
34
34
35
35
type CutOver int
36
36
37
37
const (
38
- CutOverAtomic CutOver = iota
39
- CutOverTwoStep = iota
38
+ CutOverAtomic CutOver = iota
39
+ CutOverTwoStep
40
40
)
41
41
42
42
type ThrottleReasonHint string
43
43
44
44
const (
45
45
NoThrottleReasonHint ThrottleReasonHint = "NoThrottleReasonHint"
46
- UserCommandThrottleReasonHint = "UserCommandThrottleReasonHint"
47
- LeavingHibernationThrottleReasonHint = "LeavingHibernationThrottleReasonHint"
46
+ UserCommandThrottleReasonHint ThrottleReasonHint = "UserCommandThrottleReasonHint"
47
+ LeavingHibernationThrottleReasonHint ThrottleReasonHint = "LeavingHibernationThrottleReasonHint"
48
48
)
49
49
50
50
const (
Original file line number Diff line number Diff line change @@ -7,17 +7,18 @@ package binlog
7
7
8
8
import (
9
9
"fmt"
10
- "github.com/github/gh-ost/go/sql"
11
10
"strings"
11
+
12
+ "github.com/github/gh-ost/go/sql"
12
13
)
13
14
14
15
type EventDML string
15
16
16
17
const (
17
18
NotDML EventDML = "NoDML"
18
- InsertDML = "Insert"
19
- UpdateDML = "Update"
20
- DeleteDML = "Delete"
19
+ InsertDML EventDML = "Insert"
20
+ UpdateDML EventDML = "Update"
21
+ DeleteDML EventDML = "Delete"
21
22
)
22
23
23
24
func ToEventDML (description string ) EventDML {
Original file line number Diff line number Diff line change @@ -15,11 +15,11 @@ type ValueComparisonSign string
15
15
16
16
const (
17
17
LessThanComparisonSign ValueComparisonSign = "<"
18
- LessThanOrEqualsComparisonSign = "<="
19
- EqualsComparisonSign = "="
20
- GreaterThanOrEqualsComparisonSign = ">="
21
- GreaterThanComparisonSign = ">"
22
- NotEqualsComparisonSign = "!="
18
+ LessThanOrEqualsComparisonSign ValueComparisonSign = "<="
19
+ EqualsComparisonSign ValueComparisonSign = "="
20
+ GreaterThanOrEqualsComparisonSign ValueComparisonSign = ">="
21
+ GreaterThanComparisonSign ValueComparisonSign = ">"
22
+ NotEqualsComparisonSign ValueComparisonSign = "!="
23
23
)
24
24
25
25
// EscapeName will escape a db/table/column/... name by wrapping with backticks.
Original file line number Diff line number Diff line change @@ -15,13 +15,13 @@ import (
15
15
type ColumnType int
16
16
17
17
const (
18
- UnknownColumnType ColumnType = iota
19
- TimestampColumnType = iota
20
- DateTimeColumnType = iota
21
- EnumColumnType = iota
22
- MediumIntColumnType = iota
23
- JSONColumnType = iota
24
- FloatColumnType = iota
18
+ UnknownColumnType ColumnType = iota
19
+ TimestampColumnType
20
+ DateTimeColumnType
21
+ EnumColumnType
22
+ MediumIntColumnType
23
+ JSONColumnType
24
+ FloatColumnType
25
25
)
26
26
27
27
const maxMediumintUnsigned int32 = 16777215
You can’t perform that action at this time.
0 commit comments