|
6 | 6 | use r\Exceptions\RqlDriverError; |
7 | 7 | use r\Ordering\Asc; |
8 | 8 | use r\Ordering\Desc; |
| 9 | +use r\Queries\Control\Args; |
9 | 10 | use r\Queries\Control\Branch; |
10 | 11 | use r\Queries\Control\Error; |
11 | 12 | use r\Queries\Control\Http; |
|
72 | 73 | use r\Queries\Tables\TableDrop; |
73 | 74 | use r\Queries\Tables\TableList; |
74 | 75 | use r\Queries\Transformations\MapMultiple; |
| 76 | +use r\Queries\Transformations\Union; |
75 | 77 | use r\ValuedQuery\ImplicitVar; |
76 | 78 | use r\Queries\Control\Js; |
77 | 79 | use r\ValuedQuery\Json; |
@@ -128,6 +130,11 @@ function rDo($args, $inExpr) |
128 | 130 | return new RDo($args, $inExpr); |
129 | 131 | } |
130 | 132 |
|
| 133 | +function args($args) |
| 134 | +{ |
| 135 | + return new Args($args); |
| 136 | +} |
| 137 | + |
131 | 138 | function branch(Query $test, $trueBranch, $falseBranch) |
132 | 139 | { |
133 | 140 | return new Branch($test, $trueBranch, $falseBranch); |
@@ -439,6 +446,11 @@ function mapMultiple($sequences, $mappingFunction) |
439 | 446 | return new MapMultiple($sequences[0], array_slice($sequences, 1), $mappingFunction); |
440 | 447 | } |
441 | 448 |
|
| 449 | +function union($sequence, $otherSequence, $opts = null) |
| 450 | +{ |
| 451 | + return new Union($sequence, $otherSequence, $opts); |
| 452 | +} |
| 453 | + |
442 | 454 | function ceil($value) |
443 | 455 | { |
444 | 456 | return new Ceil($value); |
|
0 commit comments