src/Leevel/Database/Select.php
public function truncate(bool $flag = false)
    {
        return $this
            ->safeSql($flag)
            ->runNativeSql(
                ...$this
                    ->condition
                    ->truncate()
            );
    }
public function truncate(bool $flag = false)
    {
        return $this
            ->safeSql($flag)
            ->runNativeSql(
                ...$this
                    ->condition
                    ->truncate()
            );
    }
清空表重置自增 ID.

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

@return array|int