// // 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.Metadata.Contracts; namespace Microsoft.SqlTools.ServiceLayer.Scripting.Contracts { /// /// The type of scripting operation requested /// public enum ScriptOperation { Select = 0, Create = 1, Insert = 2, Update = 3, Delete = 4 } /// /// Script as request parameter type /// public class ScriptingScriptAsParams { public string OwnerUri { get; set; } public ScriptOperation Operation { get; set; } public ObjectMetadata Metadata { get; set; } } /// /// Script as request result type /// public class ScriptingScriptAsResult { public string OwnerUri { get; set; } public string Script { get; set; } } /// /// Script as request message type /// public class ScriptingScriptAsRequest { public static readonly RequestType Type = RequestType.Create("scripting/scriptas"); } }