src/Database/Db.php
public function usePdo($name)
    {
        if (!isset($this->connections[$name])) {
            $name   = $this->defaultPdoName;
        }

        $pdo = $this->getPdo($name);
        $this->setActivePdo($pdo);
    }
public function usePdo($name)
    {
        if (!isset($this->connections[$name])) {
            $name   = $this->defaultPdoName;
        }

        $pdo = $this->getPdo($name);
        $this->setActivePdo($pdo);
    }
public function usePdo ( $ name ) { if ( ! isset ( $ this -> connections [ $ name ] ) ) { $ name = $ this -> defaultPdoName ; } $ pdo = $ this -> getPdo ( $ name ) ; $ this -> setActivePdo ( $ pdo ) ; }
use pdo connection by name

@param string $name
@throws DbException
use pdo connection by name