Skip to content

Commit e6fa362

Browse files
committed
update expression interfaces
1 parent bb226cc commit e6fa362

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

expression.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ type StringExpression interface {
7878
Like(other interface{}) BooleanExpression
7979
Contains(substring string) BooleanExpression
8080
Concat(other interface{}) StringExpression
81+
IfEmpty(altValue interface{}) StringExpression
82+
IsEmpty() BooleanExpression
8183
}
8284

8385
// UnknownExpression is the interface of an SQL expression with unknown value.
@@ -102,6 +104,8 @@ type UnknownExpression interface {
102104
Like(other interface{}) BooleanExpression
103105
Contains(substring string) BooleanExpression
104106
Concat(other interface{}) StringExpression
107+
IfEmpty(altValue interface{}) StringExpression
108+
IsEmpty() BooleanExpression
105109
}
106110

107111
type expression struct {

0 commit comments

Comments
 (0)