mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-14 01:25:40 -05:00
* Initial metadata service and scripting service files * Simple metadata lookup with SMO objects * Add metadata type class * Remove SMO from metadata service. * Cleanup metadata service SQL * Initial MetadataService test * Add scripting commands * Add metadata test case * Remove sleep used for testing * Use random table name in metadata test * Add scripting tests
27 lines
734 B
C#
27 lines
734 B
C#
//
|
|
// 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.Metadata.Contracts
|
|
{
|
|
public class MetadataQueryParams
|
|
{
|
|
public string OwnerUri { get; set; }
|
|
}
|
|
|
|
public class MetadataQueryResult
|
|
{
|
|
public ObjectMetadata[] Metadata { get; set; }
|
|
}
|
|
|
|
public class MetadataListRequest
|
|
{
|
|
public static readonly
|
|
RequestType<MetadataQueryParams, MetadataQueryResult> Type =
|
|
RequestType<MetadataQueryParams, MetadataQueryResult>.Create("metadata/list");
|
|
}
|
|
}
|