// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // #nullable disable using Microsoft.SqlTools.Hosting.Protocol.Contracts; using Microsoft.SqlTools.Utility; namespace Microsoft.SqlTools.ServiceLayer.ObjectManagement.Contracts { public class DropDatabaseRequestParams : GeneralRequestDetails { /// /// The target database name. /// public string Database { get; set; } /// /// URI of the underlying connection for this request /// public string ConnectionUri { get; set; } /// /// Whether to drop active connections to this database /// public bool DropConnections { get; set; } /// /// Whether to delete the backup and restore history for this database /// public bool DeleteBackupHistory { get; set; } /// /// Whether to generate a TSQL script for the operation instead of dropping the database /// public bool GenerateScript { get; set; } } public class DropDatabaseRequest { public static readonly RequestType Type = RequestType.Create("objectManagement/dropDatabase"); } }