src/Leevel/Database/Connect.php
protected function setLastSql(string $sql, array $bindParams = []): void
    {
        $this->sql = $sql;
        $this->bindParams = $bindParams;

        $this->handleDispatch($sql, $bindParams);
    }
protected function setLastSql(string $sql, array $bindParams = []): void
    {
        $this->sql = $sql;
        $this->bindParams = $bindParams;

        $this->handleDispatch($sql, $bindParams);
    }
设置 sql 绑定参数.

@param string $sql
@param array  $bindParams