Fix script generated for SQL Assessment results (#1058)

* INSERT VALUES has the limit of 1000 rows. Replace with derived table.
* Remove NOT NULL restriction from the generated table.
* Fix line endings in SQL Assessment source files.
This commit is contained in:
Aleksei Guzev
2020-08-28 20:17:54 +03:00
committed by GitHub
parent 0b905fef75
commit 07700560a6
8 changed files with 1222 additions and 1212 deletions

View File

@@ -1,33 +1,33 @@
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
using Microsoft.SqlTools.Hosting.Protocol.Contracts;
namespace Microsoft.SqlTools.ServiceLayer.SqlAssessment.Contracts
{
/// <summary>
/// Parameters for executing a query from a provided string
/// </summary>
public class GetAssessmentItemsParams : AssessmentParams
{
// a placeholder for future specialization
}
/// <summary>
/// Describes a check used to assess SQL Server objects.
/// </summary>
public class CheckInfo : AssessmentItemInfo
{
// a placeholder for future specialization
}
public class GetAssessmentItemsRequest
{
public static readonly RequestType<GetAssessmentItemsParams, AssessmentResult<CheckInfo>> Type =
RequestType<GetAssessmentItemsParams, AssessmentResult<CheckInfo>>.Create(
"assessment/getAssessmentItems");
}
}
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
using Microsoft.SqlTools.Hosting.Protocol.Contracts;
namespace Microsoft.SqlTools.ServiceLayer.SqlAssessment.Contracts
{
/// <summary>
/// Parameters for executing a query from a provided string
/// </summary>
public class GetAssessmentItemsParams : AssessmentParams
{
// a placeholder for future specialization
}
/// <summary>
/// Describes a check used to assess SQL Server objects.
/// </summary>
public class CheckInfo : AssessmentItemInfo
{
// a placeholder for future specialization
}
public class GetAssessmentItemsRequest
{
public static readonly RequestType<GetAssessmentItemsParams, AssessmentResult<CheckInfo>> Type =
RequestType<GetAssessmentItemsParams, AssessmentResult<CheckInfo>>.Create(
"assessment/getAssessmentItems");
}
}