Execute SQL statement at cursor location (#412)

* Stage changes to other machine

* Parse sql statement from script document

* Fix a few typos and minor changes

* Fix bug
This commit is contained in:
Karl Burtram
2017-07-13 20:33:05 -07:00
committed by GitHub
parent 005fc9e4df
commit cfa78bbc3b
4 changed files with 140 additions and 25 deletions

View File

@@ -0,0 +1,32 @@
//
// 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.SqlTools.ServiceLayer.QueryExecution.Contracts.ExecuteRequests
{
/// <summary>
/// Parameters for executing a query from a document open in the workspace
/// </summary>
public class ExecuteDocumentStatementParams : ExecuteRequestParamsBase
{
/// <summary>
/// Line in the document for the location of the SQL statement
/// </summary>
public int Line { get; set; }
/// <summary>
/// Column in the document for the location of the SQL statement
/// </summary>
public int Column { get; set; }
}
public class ExecuteDocumentStatementRequest
{
public static readonly
RequestType<ExecuteDocumentStatementParams, ExecuteRequestResult> Type =
RequestType<ExecuteDocumentStatementParams, ExecuteRequestResult>.Create("query/executedocumentstatement");
}
}