Skip to content

Commit

Permalink
update expression interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
lqs committed Jan 26, 2022
1 parent bb226cc commit e6fa362
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions expression.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ type StringExpression interface {
Like(other interface{}) BooleanExpression
Contains(substring string) BooleanExpression
Concat(other interface{}) StringExpression
IfEmpty(altValue interface{}) StringExpression
IsEmpty() BooleanExpression
}

// UnknownExpression is the interface of an SQL expression with unknown value.
Expand All @@ -102,6 +104,8 @@ type UnknownExpression interface {
Like(other interface{}) BooleanExpression
Contains(substring string) BooleanExpression
Concat(other interface{}) StringExpression
IfEmpty(altValue interface{}) StringExpression
IsEmpty() BooleanExpression
}

type expression struct {
Expand Down

0 comments on commit e6fa362

Please sign in to comment.