Skip to content

Commit

Permalink
feat: remove Like method for float/int
Browse files Browse the repository at this point in the history
  • Loading branch information
qqxhb committed Nov 16, 2023
1 parent d18f8d3 commit 92e3384
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 120 deletions.
20 changes: 0 additions & 20 deletions field/float.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,6 @@ func (field Float64) NotBetween(left float64, right float64) Expr {
return Not(field.Between(left, right))
}

// Like ...
func (field Float64) Like(value float64) Expr {
return expr{e: clause.Like{Column: field.RawExpr(), Value: value}}
}

// NotLike ...
func (field Float64) NotLike(value float64) Expr {
return expr{e: clause.Not(field.Like(value).expression())}
}

// Add ...
func (field Float64) Add(value float64) Float64 {
return Float64{field.add(value)}
Expand Down Expand Up @@ -181,16 +171,6 @@ func (field Float32) NotBetween(left float32, right float32) Expr {
return Not(field.Between(left, right))
}

// Like ...
func (field Float32) Like(value float32) Expr {
return expr{e: clause.Like{Column: field.RawExpr(), Value: value}}
}

// NotLike ...
func (field Float32) NotLike(value float32) Expr {
return expr{e: clause.Not(field.Like(value).expression())}
}

// Add ...
func (field Float32) Add(value float32) Float32 {
return Float32{field.add(value)}
Expand Down
100 changes: 0 additions & 100 deletions field/int.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,6 @@ func (field Int) NotBetween(left int, right int) Expr {
return Not(field.Between(left, right))
}

// Like ...
func (field Int) Like(value int) Expr {
return expr{e: clause.Like{Column: field.RawExpr(), Value: value}}
}

// NotLike ...
func (field Int) NotLike(value int) Expr {
return expr{e: clause.Not(field.Like(value).expression())}
}

// Add ...
func (field Int) Add(value int) Int {
return Int{field.add(value)}
Expand Down Expand Up @@ -213,16 +203,6 @@ func (field Int8) NotBetween(left int8, right int8) Expr {
return Not(field.Between(left, right))
}

// Like ...
func (field Int8) Like(value int8) Expr {
return expr{e: clause.Like{Column: field.RawExpr(), Value: value}}
}

// NotLike ...
func (field Int8) NotLike(value int8) Expr {
return expr{e: clause.Not(field.Like(value).expression())}
}

// Add ...
func (field Int8) Add(value int8) Int8 {
return Int8{field.add(value)}
Expand Down Expand Up @@ -369,16 +349,6 @@ func (field Int16) NotBetween(left int16, right int16) Expr {
return Not(field.Between(left, right))
}

// Like ...
func (field Int16) Like(value int16) Expr {
return expr{e: clause.Like{Column: field.RawExpr(), Value: value}}
}

// NotLike ...
func (field Int16) NotLike(value int16) Expr {
return expr{e: clause.Not(field.Like(value).expression())}
}

// Add ...
func (field Int16) Add(value int16) Int16 {
return Int16{field.add(value)}
Expand Down Expand Up @@ -525,16 +495,6 @@ func (field Int32) NotBetween(left int32, right int32) Expr {
return Not(field.Between(left, right))
}

// Like ...
func (field Int32) Like(value int32) Expr {
return expr{e: clause.Like{Column: field.RawExpr(), Value: value}}
}

// NotLike ...
func (field Int32) NotLike(value int32) Expr {
return expr{e: clause.Not(field.Like(value).expression())}
}

// Add ...
func (field Int32) Add(value int32) Int32 {
return Int32{field.add(value)}
Expand Down Expand Up @@ -681,16 +641,6 @@ func (field Int64) NotBetween(left int64, right int64) Expr {
return Not(field.Between(left, right))
}

// Like ...
func (field Int64) Like(value int64) Expr {
return expr{e: clause.Like{Column: field.RawExpr(), Value: value}}
}

// NotLike ...
func (field Int64) NotLike(value int64) Expr {
return expr{e: clause.Not(field.Like(value).expression())}
}

// Add ...
func (field Int64) Add(value int64) Int64 {
return Int64{field.add(value)}
Expand Down Expand Up @@ -837,16 +787,6 @@ func (field Uint) NotBetween(left uint, right uint) Expr {
return Not(field.Between(left, right))
}

// Like ...
func (field Uint) Like(value uint) Expr {
return expr{e: clause.Like{Column: field.RawExpr(), Value: value}}
}

// NotLike ...
func (field Uint) NotLike(value uint) Expr {
return expr{e: clause.Not(field.Like(value).expression())}
}

// Add ...
func (field Uint) Add(value uint) Uint {
return Uint{field.add(value)}
Expand Down Expand Up @@ -993,16 +933,6 @@ func (field Uint8) NotBetween(left uint8, right uint8) Expr {
return Not(field.Between(left, right))
}

// Like ...
func (field Uint8) Like(value uint8) Expr {
return expr{e: clause.Like{Column: field.RawExpr(), Value: value}}
}

// NotLike ...
func (field Uint8) NotLike(value uint8) Expr {
return expr{e: clause.Not(field.Like(value).expression())}
}

// Add ...
func (field Uint8) Add(value uint8) Uint8 {
return Uint8{field.add(value)}
Expand Down Expand Up @@ -1149,16 +1079,6 @@ func (field Uint16) NotBetween(left uint16, right uint16) Expr {
return Not(field.Between(left, right))
}

// Like ...
func (field Uint16) Like(value uint16) Expr {
return expr{e: clause.Like{Column: field.RawExpr(), Value: value}}
}

// NotLike ...
func (field Uint16) NotLike(value uint16) Expr {
return expr{e: clause.Not(field.Like(value).expression())}
}

// Add ...
func (field Uint16) Add(value uint16) Uint16 {
return Uint16{field.add(value)}
Expand Down Expand Up @@ -1305,16 +1225,6 @@ func (field Uint32) NotBetween(left uint32, right uint32) Expr {
return Not(field.Between(left, right))
}

// Like ...
func (field Uint32) Like(value uint32) Expr {
return expr{e: clause.Like{Column: field.RawExpr(), Value: value}}
}

// NotLike ...
func (field Uint32) NotLike(value uint32) Expr {
return expr{e: clause.Not(field.Like(value).expression())}
}

// Add ...
func (field Uint32) Add(value uint32) Uint32 {
return Uint32{field.add(value)}
Expand Down Expand Up @@ -1461,16 +1371,6 @@ func (field Uint64) NotBetween(left uint64, right uint64) Expr {
return Not(field.Between(left, right))
}

// Like ...
func (field Uint64) Like(value uint64) Expr {
return expr{e: clause.Like{Column: field.RawExpr(), Value: value}}
}

// NotLike ...
func (field Uint64) NotLike(value uint64) Expr {
return expr{e: clause.Not(field.Like(value).expression())}
}

// Add ...
func (field Uint64) Add(value uint64) Uint64 {
return Uint64{field.add(value)}
Expand Down

0 comments on commit 92e3384

Please sign in to comment.