updates to thread through maxCharsToStore

This commit is contained in:
Christopher C
2021-08-18 21:38:12 -07:00
parent ccd2ec446d
commit 6eb5b7668c
3 changed files with 14 additions and 1 deletions

View File

@@ -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>

View File

@@ -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";
}
}

View File

@@ -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()