Пример #1
0
 /**
  * @deprecated since version 4.0 Use selectDatabase('dbname', true) instead
  */
 public function createDatabase()
 {
     Deprecation::notice('4.0', 'Use selectDatabase(\'dbname\',true) instead');
     $database = $this->connector->getSelectedDatabase();
     $this->selectDatabase($database, true);
     return $this->isActive();
 }
 /**
  * Returns the name of the currently selected database
  *
  * @return string|null Name of the selected database, or null if none selected
  */
 public function getSelectedDatabase()
 {
     return $this->connector->getSelectedDatabase();
 }