src/db/Migration.php
public function getDbName ()
		{
			if ($this->db->getDriverName() == 'mysql')
			{
				preg_match("/dbname=([^;]*)/", $this->db->dsn, $match);
				if (isset($match[ 1 ]))
					return $match[ 1 ];
			}

			return null;
		}
public function getDbName ()
		{
			if ($this->db->getDriverName() == 'mysql')
			{
				preg_match("/dbname=([^;]*)/", $this->db->dsn, $match);
				if (isset($match[ 1 ]))
					return $match[ 1 ];
			}

			return null;
		}
public function getDbName ( ) { if ( $ this -> db -> getDriverName ( ) == 'mysql' ) { preg_match ( "/dbname=([^;]*)/" , $ this -> db -> dsn , $ match ) ; if ( isset ( $ match [ 1 ] ) ) return $ match [ 1 ] ; } return null ; }
Gets database name via dbname parameter from dsn.

@return string|null
Gets database name via dbname parameter from dsn .