src/xPDO/xPDO.php
public function addConnection($dsn, $username= '', $password= '', array $options= array(), $driverOptions= null) {
        $added = false;
        $connection= new xPDOConnection($this, $dsn, $username, $password, $options, $driverOptions);
        if ($connection instanceof xPDOConnection) {
            $this->_connections[]= $connection;
            $added= true;
        }
        return $added;
    }
public function addConnection($dsn, $username= '', $password= '', array $options= array(), $driverOptions= null) {
        $added = false;
        $connection= new xPDOConnection($this, $dsn, $username, $password, $options, $driverOptions);
        if ($connection instanceof xPDOConnection) {
            $this->_connections[]= $connection;
            $added= true;
        }
        return $added;
    }
public function addConnection ( $ dsn , $ username = '' , $ password = '' , array $ options = array ( ) , $ driverOptions = null ) { $ added = false ; $ connection = new xPDOConnection ( $ this , $ dsn , $ username , $ password , $ options , $ driverOptions ) ; if ( $ connection instanceof xPDOConnection ) { $ this -> _connections [ ] = $ connection ; $ added = true ; } return $ added ; }
Add an xPDOConnection instance to the xPDO connection pool.

@param string $dsn A PDO DSN representing the connection details.
@param string $username The username credentials for the connection.
@param string $password The password credentials for the connection.
@param array $options An array of options for the connection.
@param null $driverOptions An array of PDO driver options for the connection.
@return boolean True if a valid connection was added.
Add an xPDOConnection instance to the xPDO connection pool .