Skip to content

Commit 199313e

Browse files
authored
Merge pull request #1445 from go-gorm/fix/expr-desc
Expose Desc/Asc on Expr interface
2 parents 81d191e + 70b3629 commit 199313e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

field/expr.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ type Expr interface {
3636
MulCol(col Expr) Expr
3737
DivCol(col Expr) Expr
3838
ConcatCol(cols ...Expr) Expr
39+
Desc() Expr
40+
Asc() Expr
3941

4042
// implement Condition
4143
BeCond() interface{}

0 commit comments

Comments
 (0)