public function genDsn($config): string
    {
        // Parse config
        $dsn = '';
        foreach ($config as $key => $value) {
            if (\in_array($key, self::AVAILABLE_OPTIONS, false)) {
                $dsn .= "$key=$value;";
            }
        }

        // Get driver of connection
        $driver = strtolower($config['driver']);

        return "$driver:$dsn";
    }
public function genDsn($config): string
    {
        // Parse config
        $dsn = '';
        foreach ($config as $key => $value) {
            if (\in_array($key, self::AVAILABLE_OPTIONS, false)) {
                $dsn .= "$key=$value;";
            }
        }

        // Get driver of connection
        $driver = strtolower($config['driver']);

        return "$driver:$dsn";
    }
public function genDsn ( $ config ) : string { // Parse config $ dsn = '' ; foreach ( $ config as $ key => $ value ) { if ( \ in_array ( $ key , self :: AVAILABLE_OPTIONS , false ) ) { $ dsn .= "$key=$value;" ; } } // Get driver of connection $ driver = strtolower ( $ config [ 'driver' ] ) ; return "$driver:$dsn" ; }
Generate DSN by parameters in config

@param   array $config
@return  string
Generate DSN by parameters in config