mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-17 01:25:40 -05:00
Add DacFx Generate Deploy Script operation (#759)
* Adding DacFx Generate Deploy Script operation
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
//
|
||||
// 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;
|
||||
using Microsoft.SqlTools.ServiceLayer.TaskServices;
|
||||
using Microsoft.SqlTools.ServiceLayer.Utility;
|
||||
|
||||
namespace Microsoft.SqlTools.ServiceLayer.DacFx.Contracts
|
||||
{
|
||||
/// <summary>
|
||||
/// Parameters for a DacFx generate deploy script request.
|
||||
/// </summary>
|
||||
public class GenerateDeployScriptParams : DacFxParams
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the filepath where to save the generated script
|
||||
/// </summary>
|
||||
public string ScriptFilePath { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets whether a Deployment Report should be generated during deploy.
|
||||
/// </summary>
|
||||
public bool GenerateDeploymentReport { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the filepath where to save the deployment report
|
||||
/// </summary>
|
||||
public string DeploymentReportFilePath { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Defines the DacFx generate deploy script request type
|
||||
/// </summary>
|
||||
class GenerateDeployScriptRequest
|
||||
{
|
||||
public static readonly RequestType<GenerateDeployScriptParams, DacFxResult> Type =
|
||||
RequestType<GenerateDeployScriptParams, DacFxResult>.Create("dacfx/generateDeploymentScript");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user