mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-27 01:25:42 -05:00
Initial metadata and scripting services (#280)
* 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
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
//
|
||||
// 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");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user