-
-
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.
removed unused code added coverage doc renamed ci workflow
- Loading branch information
1 parent
4a2a7fc
commit 3dc5b0e
Showing
7 changed files
with
73 additions
and
39 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
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 |
---|---|---|
@@ -1,3 +1,36 @@ | ||
# Data binding | ||
``` | ||
bind($data, $to = null) | ||
``` | ||
Inject data through the bind command. | ||
|
||
**Example 1:** | ||
``` | ||
$qb->filter('u.age', '==', $qb->bind(18)); | ||
``` | ||
Resulting AQL: `FILTER u.age == @{a_generated_id}` | ||
|
||
**Example 2 - with bind id:** | ||
``` | ||
$qb->filter('u.age', '==', $qb->bind(18, 'my_bind')); | ||
``` | ||
Resulting AQL: `FILTER u.age == @my_bind` | ||
|
||
## Bind collection names | ||
``` | ||
bindCollection($data, $to = null) | ||
``` | ||
Inject collection names through the bindCollection command. | ||
|
||
**Example 1:** | ||
``` | ||
$qb->for('user', $qb->bindCollection('users')); | ||
``` | ||
Resulting AQL: `FOR user IN @@{a_generated_id}` | ||
|
||
**Example 2 - with bind id:** | ||
``` | ||
$qb->for('user', $qb->bindCollection('users', 'collectionBind')); | ||
``` | ||
Resulting AQL: `FOR user IN @@collectionBind` | ||
|
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