mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-17 01:25:40 -05:00
updates to thread through maxCharsToStore
This commit is contained in:
@@ -97,6 +97,11 @@ namespace Microsoft.SqlTools.ServiceLayer.QueryExecution.Contracts
|
||||
/// Encoding of the CSV file
|
||||
/// </summary>
|
||||
public string Encoding { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Maximum number of characters to store
|
||||
/// </summary>
|
||||
public int MaxCharsToStore { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -150,6 +150,12 @@ namespace Microsoft.SqlTools.ServiceLayer.QueryExecution.Contracts
|
||||
get { return this.GetOptionValue<bool>(SerializationOptionsHelper.Formatted); }
|
||||
set { this.SetOptionValue<bool>(SerializationOptionsHelper.Formatted, value); }
|
||||
}
|
||||
|
||||
internal int MaxCharsToStore
|
||||
{
|
||||
get { return this.GetOptionValue<int>(SerializationOptionsHelper.MaxCharsToStore); }
|
||||
set { this.SetOptionValue<int>(SerializationOptionsHelper.Formatted, value); }
|
||||
}
|
||||
}
|
||||
|
||||
public class SerializeDataResult
|
||||
@@ -176,5 +182,6 @@ namespace Microsoft.SqlTools.ServiceLayer.QueryExecution.Contracts
|
||||
internal const string TextIdentifier = "textIdentifier";
|
||||
internal const string Encoding = "encoding";
|
||||
internal const string Formatted = "formatted";
|
||||
internal const string MaxCharsToStore = "maxchars";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -300,7 +300,8 @@ namespace Microsoft.SqlTools.ServiceLayer.QueryExecution
|
||||
Delimiter = this.requestParams.Delimiter,
|
||||
LineSeperator = this.requestParams.LineSeparator,
|
||||
TextIdentifier = this.requestParams.TextIdentifier,
|
||||
Encoding = this.requestParams.Encoding
|
||||
Encoding = this.requestParams.Encoding,
|
||||
MaxCharsToStore = this.requestParams.MaxCharsToStore
|
||||
};
|
||||
}
|
||||
private SaveResultsAsXmlRequestParams CreateXmlRequestParams()
|
||||
|
||||
Reference in New Issue
Block a user