File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,23 +28,23 @@ type RowsEstimateMethod string
2828
2929const (
3030 TableStatusRowsEstimate RowsEstimateMethod = "TableStatusRowsEstimate"
31- ExplainRowsEstimate = "ExplainRowsEstimate"
32- CountRowsEstimate = "CountRowsEstimate"
31+ ExplainRowsEstimate RowsEstimateMethod = "ExplainRowsEstimate"
32+ CountRowsEstimate RowsEstimateMethod = "CountRowsEstimate"
3333)
3434
3535type CutOver int
3636
3737const (
38- CutOverAtomic CutOver = iota
39- CutOverTwoStep = iota
38+ CutOverAtomic CutOver = iota
39+ CutOverTwoStep
4040)
4141
4242type ThrottleReasonHint string
4343
4444const (
4545 NoThrottleReasonHint ThrottleReasonHint = "NoThrottleReasonHint"
46- UserCommandThrottleReasonHint = "UserCommandThrottleReasonHint"
47- LeavingHibernationThrottleReasonHint = "LeavingHibernationThrottleReasonHint"
46+ UserCommandThrottleReasonHint ThrottleReasonHint = "UserCommandThrottleReasonHint"
47+ LeavingHibernationThrottleReasonHint ThrottleReasonHint = "LeavingHibernationThrottleReasonHint"
4848)
4949
5050const (
Original file line number Diff line number Diff line change @@ -7,17 +7,18 @@ package binlog
77
88import (
99 "fmt"
10- "github.com/github/gh-ost/go/sql"
1110 "strings"
11+
12+ "github.com/github/gh-ost/go/sql"
1213)
1314
1415type EventDML string
1516
1617const (
1718 NotDML EventDML = "NoDML"
18- InsertDML = "Insert"
19- UpdateDML = "Update"
20- DeleteDML = "Delete"
19+ InsertDML EventDML = "Insert"
20+ UpdateDML EventDML = "Update"
21+ DeleteDML EventDML = "Delete"
2122)
2223
2324func ToEventDML (description string ) EventDML {
Original file line number Diff line number Diff line change @@ -15,11 +15,11 @@ type ValueComparisonSign string
1515
1616const (
1717 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 = "!="
2323)
2424
2525// 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 (
1515type ColumnType int
1616
1717const (
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
2525)
2626
2727const maxMediumintUnsigned int32 = 16777215
You can’t perform that action at this time.
0 commit comments