-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Query clauses documentation * documented statement clauses documented part of the graph clauses * graph traversal clauses supported functions list * * Renamed 'group' clause to 'into' * upped phpstan level by 1 + accompanying small code improvements * added repo info badges * fixed @Covers references * * Test improvements & fixes * Doc structure improvements * Renamed ArithmeticExpression to MathExpression * * fixed var * * tests/Unit/ file restructure to more closely match src/ * added tests * * added credits to documentation * simplified sort API * simplified edgeCollections API * split bind method in bind and bindCollection * code cleanup * documentation improvements removed unused code added coverage doc renamed ci workflow
- Loading branch information
1 parent
c340222
commit b16de75
Showing
49 changed files
with
822 additions
and
379 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Continuous Integration | ||
name: CI tests | ||
|
||
on: [workflow_dispatch, push, pull_request] | ||
|
||
|
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 |
---|---|---|
|
@@ -5,3 +5,4 @@ phpunit.phar | |
/vendor | ||
.cache | ||
*.cache* | ||
/clover.xml |
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
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
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# RAW AQL | ||
You can use the raw and rawExpression commands to bypass limitations of this query builder and insert raw AQL. | ||
For example when FluentAQL doesn't support a feature (yet). | ||
|
||
As always: you are responsible for its safety. Always bind external input. | ||
|
||
## RAW | ||
``` | ||
raw(string $aql, $binds = null, $collections = null) | ||
``` | ||
Insert raw AQL clauses. | ||
|
||
**Example 1: simple query** | ||
``` | ||
$qb->raw('for user in users return user.name'); | ||
``` | ||
|
||
**Example 2: with binds** | ||
``` | ||
$qb->raw('for user in users filter user.age >= @min-age && user.age <= @max-age return u.name', ['min-age' => 18, 'max-age' => 65]); | ||
``` | ||
|
||
**Example 3: with collections for deadlock prevention in cluster graph traversals or transactions** | ||
``` | ||
$qb->raw('for user in users return user.name', null, ['read' => ['users']]); | ||
``` | ||
|
||
## RAW expressions | ||
``` | ||
rawExpression(string $aql, $binds = [], $collections = [])); | ||
``` | ||
Insert raw AQL as an expression. | ||
|
||
**Example:** | ||
``` | ||
$qb->filter(x.age, '==', $qb->rawExpression('5 * 4')); | ||
``` | ||
|
This file was deleted.
Oops, something went wrong.
Empty file.
Oops, something went wrong.