mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-14 01:25:40 -05:00
* Make nullable warnings a per file opt-in * Remove unneeded compiler directives * Remove compiler directive for User Data
30 lines
1.2 KiB
C#
30 lines
1.2 KiB
C#
//
|
|
// Copyright (c) Microsoft. All rights reserved.
|
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
//
|
|
|
|
#nullable disable
|
|
|
|
using System.Data.Common;
|
|
|
|
namespace Microsoft.SqlTools.ServiceLayer.EditData
|
|
{
|
|
/// <summary>
|
|
/// Interface for a factory that generates metadata for an object to edit
|
|
/// </summary>
|
|
public interface IEditMetadataFactory
|
|
{
|
|
/// <summary>
|
|
/// Generates a edit-ready metadata object
|
|
/// </summary>
|
|
/// <param name="connection">Connection to use for getting metadata</param>
|
|
/// <param name="objectNamedParts">
|
|
/// The multipart name for the object split and unwrapped. At most two components can be
|
|
/// provided (schema, table/view name). At minimum table/view name can be provided, and
|
|
/// default schema will be used for schema name.
|
|
/// </param>
|
|
/// <param name="objectType">Type of the object to return metadata for</param>
|
|
/// <returns>Metadata about the object requested</returns>
|
|
EditTableMetadata GetObjectMetadata(DbConnection connection, string[] objectNamedParts, string objectType);
|
|
}
|
|
} |