mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-16 10:58:30 -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
|
/// Encoding of the CSV file
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string Encoding { get; set; }
|
public string Encoding { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Maximum number of characters to store
|
||||||
|
/// </summary>
|
||||||
|
public int MaxCharsToStore { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -150,6 +150,12 @@ namespace Microsoft.SqlTools.ServiceLayer.QueryExecution.Contracts
|
|||||||
get { return this.GetOptionValue<bool>(SerializationOptionsHelper.Formatted); }
|
get { return this.GetOptionValue<bool>(SerializationOptionsHelper.Formatted); }
|
||||||
set { this.SetOptionValue<bool>(SerializationOptionsHelper.Formatted, value); }
|
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
|
public class SerializeDataResult
|
||||||
@@ -176,5 +182,6 @@ namespace Microsoft.SqlTools.ServiceLayer.QueryExecution.Contracts
|
|||||||
internal const string TextIdentifier = "textIdentifier";
|
internal const string TextIdentifier = "textIdentifier";
|
||||||
internal const string Encoding = "encoding";
|
internal const string Encoding = "encoding";
|
||||||
internal const string Formatted = "formatted";
|
internal const string Formatted = "formatted";
|
||||||
|
internal const string MaxCharsToStore = "maxchars";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -300,7 +300,8 @@ namespace Microsoft.SqlTools.ServiceLayer.QueryExecution
|
|||||||
Delimiter = this.requestParams.Delimiter,
|
Delimiter = this.requestParams.Delimiter,
|
||||||
LineSeperator = this.requestParams.LineSeparator,
|
LineSeperator = this.requestParams.LineSeparator,
|
||||||
TextIdentifier = this.requestParams.TextIdentifier,
|
TextIdentifier = this.requestParams.TextIdentifier,
|
||||||
Encoding = this.requestParams.Encoding
|
Encoding = this.requestParams.Encoding,
|
||||||
|
MaxCharsToStore = this.requestParams.MaxCharsToStore
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
private SaveResultsAsXmlRequestParams CreateXmlRequestParams()
|
private SaveResultsAsXmlRequestParams CreateXmlRequestParams()
|
||||||
|
|||||||
Reference in New Issue
Block a user