Skip to content
This repository was archived by the owner on Mar 14, 2018. It is now read-only.

Commit b5e0903

Browse files
Matt Edmonstonsamdark
Matt Edmonston
authored andcommitted
Added not to operator format in docs [skip ci]
1 parent abc0cb5 commit b5e0903

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: docs/guide/db-query-builder.md

+2
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,8 @@ the operator can be one of the following:
250250

251251
- `or`: similar to the `and` operator except that the operands are concatenated using `OR`.
252252

253+
- `not`: requires only operand 1, which will be wrapped in `NOT()`. For example, `['not', 'id=1']` will generate `NOT (id=1)`. Operand 1 may also be an array to describe multiple expressions. For example `['not', ['status' => 'draft', 'name' => 'example']]` will generate `NOT ((status='draft') AND (name='example'))`.
254+
253255
- `between`: operand 1 should be the column name, and operand 2 and 3 should be the
254256
starting and ending values of the range that the column is in.
255257
For example, `['between', 'id', 1, 10]` will generate `id BETWEEN 1 AND 10`.

0 commit comments

Comments
 (0)