|
6 | 6 | use TBolier\RethinkQL\Message\MessageInterface; |
7 | 7 | use TBolier\RethinkQL\Query\Operation\AbstractOperation; |
8 | 8 | use TBolier\RethinkQL\Query\Operation\Get; |
| 9 | +use TBolier\RethinkQL\Query\Operation\IndexCreate; |
| 10 | +use TBolier\RethinkQL\Query\Operation\IndexDrop; |
| 11 | +use TBolier\RethinkQL\Query\Operation\IndexList; |
| 12 | +use TBolier\RethinkQL\Query\Operation\IndexRename; |
9 | 13 | use TBolier\RethinkQL\RethinkInterface; |
10 | 14 | use TBolier\RethinkQL\Types\Term\TermType; |
11 | 15 |
|
@@ -44,6 +48,41 @@ public function get($key): AbstractQuery |
44 | 48 | return new Get($this->rethink, $this->message, $this, $key); |
45 | 49 | } |
46 | 50 |
|
| 51 | + /** |
| 52 | + * @inheritdoc |
| 53 | + */ |
| 54 | + public function indexCreate(string $name): AbstractQuery |
| 55 | + { |
| 56 | + return new IndexCreate($this->rethink, $this->message, $this, $name); |
| 57 | + |
| 58 | + } |
| 59 | + |
| 60 | + /** |
| 61 | + * @inheritdoc |
| 62 | + */ |
| 63 | + public function indexDrop(string $name): AbstractQuery |
| 64 | + { |
| 65 | + return new IndexDrop($this->rethink, $this->message, $this, $name); |
| 66 | + |
| 67 | + } |
| 68 | + |
| 69 | + /** |
| 70 | + * @inheritdoc |
| 71 | + */ |
| 72 | + public function indexList(): AbstractQuery |
| 73 | + { |
| 74 | + return new IndexList($this->rethink, $this->message, $this); |
| 75 | + } |
| 76 | + |
| 77 | + /** |
| 78 | + * @inheritdoc |
| 79 | + */ |
| 80 | + public function indexRename(string $oldValue, string $newValue): AbstractQuery |
| 81 | + { |
| 82 | + return new IndexRename($this->rethink, $this->message, $this, $oldValue, $newValue); |
| 83 | + |
| 84 | + } |
| 85 | + |
47 | 86 | /** |
48 | 87 | * @inheritdoc |
49 | 88 | */ |
|
0 commit comments