public function getConnectionString()
    {

        $settings = $this->connectionInfo;
        unset( $settings['search_path'] );

        foreach ($settings as $key => &$value) {
            $value = sprintf(
                "%s='%s'",
                $key,
                $value
            );
        }

        return implode(' ', $settings);

    }
public function getConnectionString()
    {

        $settings = $this->connectionInfo;
        unset( $settings['search_path'] );

        foreach ($settings as $key => &$value) {
            $value = sprintf(
                "%s='%s'",
                $key,
                $value
            );
        }

        return implode(' ', $settings);

    }
public function getConnectionString ( ) { $ settings = $ this -> connectionInfo ; unset ( $ settings [ 'search_path' ] ) ; foreach ( $ settings as $ key => & $ value ) { $ value = sprintf ( "%s='%s'" , $ key , $ value ) ; } return implode ( ' ' , $ settings ) ; }
Generate a property formatted postgres connection string

@param array $settings array( 'host' =>, 'port' =>, 'dbname' =>, 'user' => , 'password' => )
@return string a pg_connect compatable connectio string
Generate a property formatted postgres connection string