// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // using Microsoft.SqlTools.ServiceLayer.Hosting.Protocol.Contracts; namespace Microsoft.SqlTools.ServiceLayer.QueryExecution.Contracts { /// /// Parameters for a query result subset retrieval request /// public class QueryExecuteSubsetParams { /// /// URI for the file that owns the query to look up the results for /// public string OwnerUri { get; set; } /// /// Index of the batch to get the results from /// public int BatchIndex { get; set; } /// /// Index of the result set to get the results from /// public int ResultSetIndex { get; set; } /// /// Beginning index of the rows to return from the selected resultset. This index will be /// included in the results. /// public int RowsStartIndex { get; set; } /// /// Number of rows to include in the result of this request. If the number of the rows /// exceeds the number of rows available after the start index, all available rows after /// the start index will be returned. /// public int RowsCount { get; set; } } /// /// Parameters for the result of a subset retrieval request /// public class QueryExecuteSubsetResult { /// /// Subset request error messages. Optional, can be set to null to indicate no errors /// public string Message { get; set; } /// /// The requested subset of results. Optional, can be set to null to indicate an error /// public ResultSetSubset ResultSubset { get; set; } } public class QueryExecuteSubsetRequest { public static readonly RequestType Type = RequestType.Create("query/subset"); } }