// // 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.ServiceLayer.SqlContext { /// /// Collection of settings related to the execution of queries /// public class QueryExecutionSettings { /// /// Default value for batch separator (de facto standard as per SSMS) /// private const string DefaultBatchSeparator = "GO"; private string batchSeparator; /// /// The configured batch separator, will use a default if a value was not configured /// public string BatchSeparator { get { return batchSeparator ?? DefaultBatchSeparator; } set { batchSeparator = value; } } /// /// Update the current settings with the new settings /// /// The new settings public void Update(QueryExecutionSettings newSettings) { BatchSeparator = newSettings.BatchSeparator; } } }