drop_database() public method

Drop a database
public drop_database ( string $db ) : boolean
$db string the db name
return boolean
 /**
  * test dropping database
  */
 public function test_database_droppage()
 {
     $db = "test_db";
     //create it
     $this->assertEquals(true, $this->adapter->create_database($db));
     $this->assertEquals(true, $this->adapter->database_exists($db));
     //drop it
     $this->assertEquals(true, $this->adapter->drop_database($db));
     $this->assertEquals(false, $this->adapter->database_exists($db));
 }
Beispiel #2
0
 /**
  * Drop a database
  *
  * @param string $name the name of the database
  *
  * @return boolean
  */
 public function drop_database($name)
 {
     return $this->_adapter->drop_database($name);
 }