// // 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.Hosting.Protocol.Contracts; namespace Microsoft.Kusto.ServiceLayer.QueryExecution.Contracts.ExecuteRequests { /// /// Parameters for executing a query from a provided string /// public class SimpleExecuteParams { /// /// The string to execute /// public string QueryString { get; set; } /// /// The owneruri to get connection from /// public string OwnerUri { get; set; } } /// /// Result /// public class SimpleExecuteResult { /// /// The number of rows that was returned with the resultset /// public long RowCount { get; set; } /// /// Details about the columns that are provided as solutions /// public DbColumnWrapper[] ColumnInfo { get; set; } /// /// 2D array of the cell values requested from result set /// public DbCellValue[][] Rows { get; set; } } public class SimpleExecuteRequest { public static readonly RequestType Type = RequestType.Create("query/simpleexecute"); } }