Improves "save as Excel" functionality (#2266)

This commit is contained in:
2023-10-11 19:32:04 -04:00
committed by GitHub
parent a3b42e43bd
commit ad0aedb0a8
15 changed files with 969 additions and 121 deletions

View File

@@ -85,6 +85,17 @@ namespace Microsoft.SqlTools.ServiceLayer.QueryExecution.DataStorage
throw new InvalidOperationException("This type of writer is meant to write values from a list of cell values only.");
}
/// <summary>
/// Indicates whether columns should be measured based on whether the output format supports it and if the caller wants the columns automatically sized
/// </summary>
public virtual bool ShouldMeasureRowColumns => false;
/// <summary>
/// Measures the columns in a row of data as part of determining automatic column widths
/// </summary>
/// <param name="row">The row of data to measure</param>
public virtual void MeasureRowColumns(IList<DbCellValue> row) { }
/// <summary>
/// Writes a row of data to the output file using the format provided by the implementing class.
/// </summary>