Skip to content

Commit d3138bf

Browse files
committed
Greater, Less expr
1 parent 1774ffe commit d3138bf

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,17 @@ Not(Select("col").From("table")) // NOT (SELECT col FROM table)
155155
Not(Not(Select("col").From("table"))) // SELECT col FROM table
156156
```
157157
158+
### Equal, NotEqual, Greater, GreaterOrEqual, Less, LessOrEqual functions
159+
160+
```go
161+
Equal(Select("col").From("table"), 1) // (SELECT col FROM table) = 1
162+
NotEqual(Select("col").From("table"), 1) // (SELECT col FROM table) != 1
163+
Greater(Select("col").From("table"), 1) // (SELECT col FROM table) > 1
164+
GreaterOrEqual(Select("col").From("table"), 1) // (SELECT col FROM table) >= 1
165+
Less(Select("col").From("table"), 1) // (SELECT col FROM table) < 1
166+
LessOrEqual(Select("col").From("table"), 1) // (SELECT col FROM table) <= 1
167+
```
168+
158169
### Range function
159170
160171
```go

0 commit comments

Comments
 (0)