Skip to content

Commit 01cb756

Browse files
committed
Add note about IS and IS NOT in operator documentation
Signed-off-by: Stephen Celis <[email protected]>
1 parent 1c048fd commit 01cb756

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

Documentation/Index.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -628,17 +628,19 @@ SQLite.swift defines a number of operators for building filtering predicates. Op
628628

629629
###### Infix Filter Operators
630630

631-
| Swift | Types | SQLite |
632-
| ----- | -------------------------------- | --------- |
633-
| `==` | `Equatable -> Bool` | `=` |
634-
| `!=` | `Equatable -> Bool` | `!=` |
635-
| `>` | `Comparable -> Bool` | `>` |
636-
| `>=` | `Comparable -> Bool` | `>=` |
637-
| `<` | `Comparable -> Bool` | `<` |
638-
| `<=` | `Comparable -> Bool` | `<=` |
639-
| `~=` | `(Interval, Comparable) -> Bool` | `BETWEEN` |
640-
| `&&` | `Bool -> Bool` | `AND` |
641-
| `||` | `Bool -> Bool` | `OR` |
631+
| Swift | Types | SQLite |
632+
| ----- | -------------------------------- | -------------- |
633+
| `==` | `Equatable -> Bool` | `=`/`IS`* |
634+
| `!=` | `Equatable -> Bool` | `!=`/`IS NOT`* |
635+
| `>` | `Comparable -> Bool` | `>` |
636+
| `>=` | `Comparable -> Bool` | `>=` |
637+
| `<` | `Comparable -> Bool` | `<` |
638+
| `<=` | `Comparable -> Bool` | `<=` |
639+
| `~=` | `(Interval, Comparable) -> Bool` | `BETWEEN` |
640+
| `&&` | `Bool -> Bool` | `AND` |
641+
| `||` | `Bool -> Bool` | `OR` |
642+
643+
> *When comparing against `nil`, SQLite.swift will use `IS` and `IS NOT` accordingly.
642644

643645

644646
###### Prefix Filter Operators

0 commit comments

Comments
 (0)