-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added NOT LIKE string operator Added ALL NOT IN, ANY NOT IN & NONE NOT IN array operators
- Loading branch information
1 parent
3ed8ff7
commit d1f1b04
Showing
2 changed files
with
19 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,6 +67,21 @@ | |
); | ||
}); | ||
|
||
test('where =~ operator', function () { | ||
$builder = getBuilder(); | ||
$builder->select('*') | ||
->from('users') | ||
->where('email', '=~', '[email protected]'); | ||
|
||
$this->assertSame( | ||
'FOR userDoc IN users ' | ||
. 'FILTER `userDoc`.`email` =~ @' | ||
. $builder->getQueryId() | ||
. '_where_1 RETURN userDoc', | ||
$builder->toSql(), | ||
); | ||
}); | ||
|
||
test('where json arrow conversion', function () { | ||
$builder = getBuilder(); | ||
$builder->select('*') | ||
|