src/Leevel/Database/Select.php
protected function safeSql(bool $flag = true): self
    {
        if (true === $this->onlyMakeSql) {
            return $this;
        }

        $this->onlyMakeSql = $flag;

        return $this;
    }
protected function safeSql(bool $flag = true): self
    {
        if (true === $this->onlyMakeSql) {
            return $this;
        }

        $this->onlyMakeSql = $flag;

        return $this;
    }
安全格式指定返回 SQL 不做任何操作.

@param bool $flag 指示是否不做任何操作只返回 SQL

@return $this