src/Database/Drivers/Pdo/Pgsql.php
public function getDsn(): string
  {
    // pgsql:host=<hostname>;port=26257;dbname=bank;sslmode=disable

    # Build the DSN
    $_dsn = $this->getDriver().':' . 
            'host=' . $this->GetHost().';' . 
            'port=' . ($this->GetPort()!=0 ? $this->GetPort() . ':' : '26257' ) .
            'dbname=' . $this->GetSchema().';' .
            'sslmode=' . $this->getSSLMode();
            // 'charset='.$this->GetCharset();
    # Set it
    $this->setDsn($_dsn);
    # Results
    return $this->pdo_dsn;
  }
public function getDsn(): string
  {
    // pgsql:host=<hostname>;port=26257;dbname=bank;sslmode=disable

    # Build the DSN
    $_dsn = $this->getDriver().':' . 
            'host=' . $this->GetHost().';' . 
            'port=' . ($this->GetPort()!=0 ? $this->GetPort() . ':' : '26257' ) .
            'dbname=' . $this->GetSchema().';' .
            'sslmode=' . $this->getSSLMode();
            // 'charset='.$this->GetCharset();
    # Set it
    $this->setDsn($_dsn);
    # Results
    return $this->pdo_dsn;
  }
public function getDsn ( ) : string { // pgsql:host=<hostname>;port=26257;dbname=bank;sslmode=disable # Build the DSN $ _dsn = $ this -> getDriver ( ) . ':' . 'host=' . $ this -> GetHost ( ) . ';' . 'port=' . ( $ this -> GetPort ( ) != 0 ? $ this -> GetPort ( ) . ':' : '26257' ) . 'dbname=' . $ this -> GetSchema ( ) . ';' . 'sslmode=' . $ this -> getSSLMode ( ) ; // 'charset='.$this->GetCharset(); # Set it $ this -> setDsn ( $ _dsn ) ; # Results return $ this -> pdo_dsn ; }
Get DSN - CockraochDb formatting

@return string       [description]
Get DSN - CockraochDb formatting