diff --git a/internal/tablewriter/database_tablewriter.go b/internal/tablewriter/database_tablewriter.go index 913cf9f564..c080a69c15 100644 --- a/internal/tablewriter/database_tablewriter.go +++ b/internal/tablewriter/database_tablewriter.go @@ -58,12 +58,12 @@ func (t *Table) SetFooter(footer []string) { t.footer = footer } -// AppendBulk sets all data rows for the table at once, replacing any existing rows. +// AppendBulk appends one or more data rows to the table. // // Each row must have the same number of columns as the headers, or validation // will fail during Render(). func (t *Table) AppendBulk(rows [][]string) { - t.rows = rows + t.rows = append(t.rows, rows...) } // Render outputs the complete table to the configured writer. The table is rendered