// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // namespace Microsoft.SqlTools.ServiceLayer.QueryExecution.Contracts { /// /// Represents a summary of information about a result without returning any cells of the results /// public class ResultSetSummary { /// /// The ID of the result set within the batch results /// public int Id { get; set; } /// /// The ID of the batch set within the query /// public int BatchId { get; set; } /// /// The number of rows that are available for the resultset thus far /// public long RowCount { get; set; } /// /// If true it indicates that all rows have been fetched and the RowCount being sent across is final for this ResultSet /// public bool Complete { get; set; } /// /// Details about the columns that are provided as solutions /// public DbColumnWrapper[] ColumnInfo { get; set; } /// /// The special action definition of the result set /// public SpecialAction SpecialAction { get; set; } public override string ToString() => $"Result Summary Id:{Id}, Batch Id:'{BatchId}', RowCount:'{RowCount}', Complete:'{Complete}', SpecialAction:'{SpecialAction}'"; } }