Skip to content

Commit

Permalink
op.InSubquery()
Browse files Browse the repository at this point in the history
  • Loading branch information
sdfsdhgjkbmnmxc committed Sep 5, 2021
1 parent e90ce49 commit 036d8cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
v0.16.0
* op.InSubquery()

v0.15.0
* lorm.IsCancelingStatementDueToLockTimeout(error)
* lorm.IsDuplicateKeyViolatesUniqueConstraint(error)
Expand Down
1 change: 1 addition & 0 deletions op/op.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ func GreaterThan(f Expr, v Expr) Expr { return rawExpr(f.String() + " > "
func Greatest(f Expr, v Expr) Expr {
return rawExpr("GREATEST(" + f.String() + ", " + v.String() + ")")
}
func InSubquery(f Expr, q Query) Expr { return rawExpr(f.String() + " IN (" + q.String() + ")") }
func IsNotNull(f Expr) Expr { return rawExpr(f.String() + " IS NOT NULL") }
func IsNull(f Expr) Expr { return rawExpr(f.String() + " IS NULL") }
func Lag(v Expr) Expr { return rawExpr("LAG(" + v.String() + ")") }
Expand Down

0 comments on commit 036d8cd

Please sign in to comment.