// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // namespace Microsoft.SqlTools.DataProtocol.Contracts.Connection { /// /// Parameters for the Connect Request. /// public class ConnectParams { /// /// A URI identifying the owner of the connection. This will most commonly be a file in the workspace /// or a virtual file representing an object in a database. /// public string OwnerUri { get; set; } /// /// Contains the required parameters to initialize a connection to a database. /// A connection will identified by its server name, database name and user name. /// This may be changed in the future to support multiple connections with different /// connection properties to the same database. /// public ConnectionDetails Connection { get; set; } /// /// The type of this connection. By default, this is set to ConnectionType.Default. /// public string Type { get; set; } = ConnectionType.Default; /// /// The porpose of the connection to keep track of open connections /// public string Purpose { get; set; } = ConnectionType.GeneralConnection; } }