src/Leevel/Database/Condition.php
public function truncate(): array
    {
        // 构造 truncate 语句
        $sql = [];
        $sql[] = 'TRUNCATE TABLE';
        $sql[] = $this->parseTable();
        $sql = implode(' ', $sql);

        return [
            'statement',
            $sql,
        ];
    }
public function truncate(): array
    {
        // 构造 truncate 语句
        $sql = [];
        $sql[] = 'TRUNCATE TABLE';
        $sql[] = $this->parseTable();
        $sql = implode(' ', $sql);

        return [
            'statement',
            $sql,
        ];
    }
清空表重置自增 ID.

@return array