Example #1
0
 /**
  * Drops this database
  *
  * @link http://www.php.net/manual/en/mongodb.drop.php
  * @return array Returns the database response.
  */
 public function drop()
 {
     return TypeConverter::toLegacy($this->db->drop());
 }
Example #2
0
 /**
  * @see Database::drop()
  */
 public function drop(array $options = [])
 {
     $this->log(array('dropDatabase' => true, 'options' => $options));
     return parent::drop($options);
 }
Example #3
0
 /**
  * (PECL mongo &gt;= 0.9.0)<br/>
  * Drops this database
  * @link http://www.php.net/manual/en/mongodb.drop.php
  * @return array Returns the database response.
  */
 public function drop()
 {
     return $this->db->drop();
 }