Gets a information about the current database.
public getDatabaseInfo ( ) : Dibi\Reflection\Database | ||
return | Dibi\Reflection\Database |
/** * @return mixed */ private function getPrimaryKey() { $primaryKey = $this->db->getDatabaseInfo()->getTable($this->tableName)->getPrimaryKey()->getColumns(); return $primaryKey[0]->name; }