src/ConnectionManager.php
private function createDsn(string $dbtype, \stdClass $params): string
	{
		$pairs = [];

		if ( ! empty($params->database))
		{
			$pairs[] = implode('=', ['dbname', $params->database]);
		}

		$skip = [
			'name' => 'name',
			'pass' => 'pass',
			'user' => 'user',
			'type' => 'type',
			'prefix' => 'prefix',
			'options' => 'options',
			'database' => 'database',
			'alias' => 'alias'
		];

		foreach($params as $key => $val)
		{
			if (( ! array_key_exists($key, $skip)) &&  ! empty($val))
			{
				$pairs[] = implode('=', [$key, $val]);
			}
		}

		return strtolower($dbtype) . ':' . implode(';', $pairs);
	}
private function createDsn(string $dbtype, \stdClass $params): string
	{
		$pairs = [];

		if ( ! empty($params->database))
		{
			$pairs[] = implode('=', ['dbname', $params->database]);
		}

		$skip = [
			'name' => 'name',
			'pass' => 'pass',
			'user' => 'user',
			'type' => 'type',
			'prefix' => 'prefix',
			'options' => 'options',
			'database' => 'database',
			'alias' => 'alias'
		];

		foreach($params as $key => $val)
		{
			if (( ! array_key_exists($key, $skip)) &&  ! empty($val))
			{
				$pairs[] = implode('=', [$key, $val]);
			}
		}

		return strtolower($dbtype) . ':' . implode(';', $pairs);
	}
private function createDsn ( string $ dbtype , \ stdClass $ params ) : string { $ pairs = [ ] ; if ( ! empty ( $ params -> database ) ) { $ pairs [ ] = implode ( '=' , [ 'dbname' , $ params -> database ] ) ; } $ skip = [ 'name' => 'name' , 'pass' => 'pass' , 'user' => 'user' , 'type' => 'type' , 'prefix' => 'prefix' , 'options' => 'options' , 'database' => 'database' , 'alias' => 'alias' ] ; foreach ( $ params as $ key => $ val ) { if ( ( ! array_key_exists ( $ key , $ skip ) ) && ! empty ( $ val ) ) { $ pairs [ ] = implode ( '=' , [ $ key , $ val ] ) ; } } return strtolower ( $ dbtype ) . ':' . implode ( ';' , $ pairs ) ; }
Create the dsn from the db type and params

@codeCoverageIgnore
@param string $dbtype
@param \stdClass $params
@return string
Create the dsn from the db type and params