src/Leevel/Database/Connect.php
public function pdo($master = false)
    {
        if (is_bool($master)) {
            if (false === $master) {
                return $this->readConnect();
            }

            return $this->writeConnect();
        }

        return $this->connects[$master] ?? null;
    }
public function pdo($master = false)
    {
        if (is_bool($master)) {
            if (false === $master) {
                return $this->readConnect();
            }

            return $this->writeConnect();
        }

        return $this->connects[$master] ?? null;
    }
返回 Pdo 查询连接.

@param bool|int $master
@note bool false (读服务器) true (写服务器)
@note 其它去对应服务器连接ID 0 表示主服务器

@return mixed