/** * Gets a information about the current database. * @return DibiDatabaseInfo */ public function getDatabaseInfo() { $this->connected || $this->connect(); return new DibiDatabaseInfo($this->driver->getReflector(), isset($this->config['database']) ? $this->config['database'] : NULL); }