src/db/pgsql/PostgresConnector.php
protected function getConnectionDescription() {
        $options = $this->options;

        if (is_resource($this->hConnection)) {
            $host        = pg_host($this->hConnection);
            $port        = pg_port($this->hConnection);
            $db          = pg_dbname($this->hConnection);
            $path        = $this->getSchemaSearchPath();
            $description = $host.':'.$port.'/'.$db.' (schema search path: '.$path.')';
        }
        else {
            if      (isset($options['hostaddr'])) $host = $options['hostaddr'];
            else if (isset($options['host'    ])) $host = $options['host'    ];
            else                                  $host = '';

            if (isset($options['port'])) $port = ':'.$options['port'];
            else                         $port = '';

            if      (isset($options['dbname'])) $db = $options['dbname'];
            else if (isset($options['user'  ])) $db = $options['user'  ];
            else                                $db = '';

            $description = $host.$port.'/'.$db;
        }
        return $description;
    }
protected function getConnectionDescription() {
        $options = $this->options;

        if (is_resource($this->hConnection)) {
            $host        = pg_host($this->hConnection);
            $port        = pg_port($this->hConnection);
            $db          = pg_dbname($this->hConnection);
            $path        = $this->getSchemaSearchPath();
            $description = $host.':'.$port.'/'.$db.' (schema search path: '.$path.')';
        }
        else {
            if      (isset($options['hostaddr'])) $host = $options['hostaddr'];
            else if (isset($options['host'    ])) $host = $options['host'    ];
            else                                  $host = '';

            if (isset($options['port'])) $port = ':'.$options['port'];
            else                         $port = '';

            if      (isset($options['dbname'])) $db = $options['dbname'];
            else if (isset($options['user'  ])) $db = $options['user'  ];
            else                                $db = '';

            $description = $host.$port.'/'.$db;
        }
        return $description;
    }
protected function getConnectionDescription ( ) { $ options = $ this -> options ; if ( is_resource ( $ this -> hConnection ) ) { $ host = pg_host ( $ this -> hConnection ) ; $ port = pg_port ( $ this -> hConnection ) ; $ db = pg_dbname ( $ this -> hConnection ) ; $ path = $ this -> getSchemaSearchPath ( ) ; $ description = $ host . ':' . $ port . '/' . $ db . ' (schema search path: ' . $ path . ')' ; } else { if ( isset ( $ options [ 'hostaddr' ] ) ) $ host = $ options [ 'hostaddr' ] ; else if ( isset ( $ options [ 'host' ] ) ) $ host = $ options [ 'host' ] ; else $ host = '' ; if ( isset ( $ options [ 'port' ] ) ) $ port = ':' . $ options [ 'port' ] ; else $ port = '' ; if ( isset ( $ options [ 'dbname' ] ) ) $ db = $ options [ 'dbname' ] ; else if ( isset ( $ options [ 'user' ] ) ) $ db = $ options [ 'user' ] ; else $ db = '' ; $ description = $ host . $ port . '/' . $ db ; } return $ description ; }
Return a textual description of the database connection options.

@return string
Return a textual description of the database connection options .