//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
using System.Data.Common;
namespace Microsoft.SqlTools.ServiceLayer.EditData
{
///
/// Interface for a factory that generates metadata for an object to edit
///
public interface IEditMetadataFactory
{
///
/// Generates a edit-ready metadata object
///
/// Connection to use for getting metadata
///
/// 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.
///
/// Type of the object to return metadata for
/// Metadata about the object requested
EditTableMetadata GetObjectMetadata(DbConnection connection, string[] objectNamedParts, string objectType);
}
}