예제 #1
0
파일: Settings.php 프로젝트: vtl3000/rest
 /**
  * @param $dbName
  * @param $collectionName
  * @param $newCollectionName
  * @return bool
  */
 public function renameCollection($dbName, $collectionName, $newCollectionName)
 {
     $dbResponse = DB::getMongoClient()->admin->command(['renameCollection' => "{$dbName}.{$collectionName}", 'to' => "{$dbName}.{$newCollectionName}"]);
     return $this->checkResult($dbResponse);
 }