mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-25 17:24:17 -05:00
Add DacFx Generate Deploy Plan Operation (#768)
* initial adding upgrade plan * upgrade plan request from ADS works * now data loss operations are returned * fixes after rebasing * refactoring to use GenerateDeployPlan instead of UpgradePlan * improving test * Addressing comments * changing abstract execute to virtual * changed GenerateDeployPlanOepration to use Execute() * addressing comments * simplyfing deploy options * adding deploy options to deploy and generate script operations
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
//
|
||||
// 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 plan request.
|
||||
/// </summary>
|
||||
public class GenerateDeployPlanParams : DacFxParams
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Defines the DacFx generate deploy plan request type
|
||||
/// </summary>
|
||||
class GenerateDeployPlanRequest
|
||||
{
|
||||
public static readonly RequestType<GenerateDeployPlanParams, GenerateDeployPlanRequestResult> Type =
|
||||
RequestType<GenerateDeployPlanParams, GenerateDeployPlanRequestResult>.Create("dacfx/generateDeployPlan");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Parameters returned from a generate deploy script request.
|
||||
/// </summary>
|
||||
public class GenerateDeployPlanRequestResult : DacFxResult
|
||||
{
|
||||
/// <summary>
|
||||
/// An xml string that details the alerts and the operations for deploying the specified dacpac to the database
|
||||
/// </summary>
|
||||
public string Report { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user