mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-25 17:24:17 -05:00
Returns strings for the default value of a column when a new row is created. The values that could come back: * `null` when there isn't a default for the column * a string when there is a default for the column * a placeholder (currently <TBD>) when the column cannot be updated * Renaming EditTableMetadata to reflect its SMO source * Implementation of returning default values * Unit test for default values * Reworking column defaults using default constraints * Adding unit test for new sql script unwrapper * Disabling flaky test * Fixing oddities in tests, removing personal tests * Fixing broken unit test
37 lines
1.1 KiB
C#
37 lines
1.1 KiB
C#
//
|
|
// Copyright (c) Microsoft. All rights reserved.
|
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
//
|
|
|
|
using System.Collections.Generic;
|
|
|
|
namespace Microsoft.SqlTools.ServiceLayer.EditData
|
|
{
|
|
/// <summary>
|
|
/// An interface used in edit scenarios that defines properties for what columns are primary
|
|
/// keys, and other metadata of the table.
|
|
/// </summary>
|
|
public interface IEditTableMetadata
|
|
{
|
|
/// <summary>
|
|
/// All columns in the table that's being edited
|
|
/// </summary>
|
|
IReadOnlyList<EditColumnWrapper> Columns { get; }
|
|
|
|
/// <summary>
|
|
/// The escaped name of the table that's being edited
|
|
/// </summary>
|
|
string EscapedMultipartName { get; }
|
|
|
|
/// <summary>
|
|
/// Whether or not this table is a memory optimized table
|
|
/// </summary>
|
|
bool IsMemoryOptimized { get; }
|
|
|
|
/// <summary>
|
|
/// Columns that can be used to uniquely identify the a row
|
|
/// </summary>
|
|
IReadOnlyList<EditColumnWrapper> KeyColumns { get; }
|
|
}
|
|
}
|