-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.php
More file actions
22 lines (18 loc) · 806 Bytes
/
test.php
File metadata and controls
22 lines (18 loc) · 806 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// $collectionSpells = "spells";
// $valuesToAdd = [
// ['name' => 'Poke', 'level' => 1],
// ['name' => 'Zap', 'level' => 1],
// ['name' => 'Blast', 'level' => 2]
// ];
// $valuesToUpdate = [
// [ ['name' => 'Poke'], ['$set' => ['flavor' => 'Snick snick!']] ],
// [ ['name' => 'Zap'], ['$set' => ['flavor' => 'Bzazt!']] ],
// [ ['name' => 'Blast'], ['$set' => ['flavor' => 'FWOOM!']] ]
// ];
// $mongo->deleteCollection($dbName, $collectionBooks);
// $mongo->deleteDatas($dbName, $collectionSpells);
// $mongo->addDatas($dbName, $collectionSpells, $valuesToAdd);
// $mongo->updateDatas($dbName, $collectionSpells, $valuesToUpdate);
// $filter = ['level' => 1];
// $mongo->displaySpells($dbName, $collectionSpells, $filter);
// $mongo->displaySpells($dbName, $collectionSpells);