File tree Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change 18
18
"require" : {
19
19
"php" : " ^7.2" ,
20
20
"roave/security-advisories" : " dev-master" ,
21
- "event-engine/php-document-store" : " ^0.1 " ,
21
+ "event-engine/php-document-store" : " ^0.2 " ,
22
22
"event-engine/php-event-store" : " ^0.1"
23
23
},
24
24
"require-dev" : {
Original file line number Diff line number Diff line change @@ -68,6 +68,31 @@ public function dropCollection(string $collectionName): void
68
68
$ this ->documentStore ->dropCollection ($ collectionName );
69
69
}
70
70
71
+ public function hasCollectionIndex (string $ collectionName , string $ indexName ): bool
72
+ {
73
+ return $ this ->documentStore ->hasCollectionIndex ($ collectionName , $ indexName );
74
+ }
75
+
76
+ /**
77
+ * @param string $collectionName
78
+ * @param Index $index
79
+ * @throws \Throwable if adding did not succeed
80
+ */
81
+ public function addCollectionIndex (string $ collectionName , Index $ index ): void
82
+ {
83
+ $ this ->documentStore ->addCollectionIndex ($ collectionName , $ index );
84
+ }
85
+
86
+ /**
87
+ * @param string $collectionName
88
+ * @param string $indexName
89
+ * @throws \Throwable if dropping did not succeed
90
+ */
91
+ public function dropCollectionIndex (string $ collectionName , string $ indexName ): void
92
+ {
93
+ $ this ->documentStore ->dropCollectionIndex ($ collectionName , $ indexName );
94
+ }
95
+
71
96
/**
72
97
* @param string $collectionName
73
98
* @param string $docId
You can’t perform that action at this time.
0 commit comments