[Table Designer] Support filter predicate and included columns for index (#1619)

This commit is contained in:
Hai Cao
2022-08-05 15:04:44 -07:00
committed by GitHub
parent 1342a8a085
commit a9fe77589d
8 changed files with 400 additions and 2 deletions

View File

@@ -8797,6 +8797,54 @@ namespace Microsoft.SqlTools.ServiceLayer
}
}
public static string IndexIncludedColumnsGroupTitle
{
get
{
return Keys.GetString(Keys.IndexIncludedColumnsGroupTitle);
}
}
public static string IndexIncludedColumnsPropertyDescription
{
get
{
return Keys.GetString(Keys.IndexIncludedColumnsPropertyDescription);
}
}
public static string IndexIncludedColumnsAddColumn
{
get
{
return Keys.GetString(Keys.IndexIncludedColumnsAddColumn);
}
}
public static string IndexIncludedColumnsColumnPropertyName
{
get
{
return Keys.GetString(Keys.IndexIncludedColumnsColumnPropertyName);
}
}
public static string IndexFilterPredicatePropertyDescription
{
get
{
return Keys.GetString(Keys.IndexFilterPredicatePropertyDescription);
}
}
public static string IndexFilterPredicatePropertyTitle
{
get
{
return Keys.GetString(Keys.IndexFilterPredicatePropertyTitle);
}
}
public static string TableDesignerColumnsDisplayValueTitle
{
get
@@ -9349,6 +9397,22 @@ namespace Microsoft.SqlTools.ServiceLayer
}
}
public static string ClusteredIndexCannotHaveIncludedColumnsRuleDescription
{
get
{
return Keys.GetString(Keys.ClusteredIndexCannotHaveIncludedColumnsRuleDescription);
}
}
public static string ClusteredIndexCannotHaveFilterPredicateRuleDescription
{
get
{
return Keys.GetString(Keys.ClusteredIndexCannotHaveFilterPredicateRuleDescription);
}
}
public static string ConnectionServiceListDbErrorNotConnected(string uri)
{
return Keys.GetString(Keys.ConnectionServiceListDbErrorNotConnected, uri);
@@ -9714,6 +9778,16 @@ namespace Microsoft.SqlTools.ServiceLayer
return Keys.GetString(Keys.ColumnCannotBeListedMoreThanOnceInPrimaryKeyRuleDescription, columnName);
}
public static string ColumnCanOnlyAppearOnceInIndexIncludedColumnsRuleDescription(string columnName, string indexName, int rowNumber)
{
return Keys.GetString(Keys.ColumnCanOnlyAppearOnceInIndexIncludedColumnsRuleDescription, columnName, indexName, rowNumber);
}
public static string ColumnCannotDuplicateWitIndexKeyColumnsRuleDescription(string columnName, string indexName, int rowNumber)
{
return Keys.GetString(Keys.ColumnCannotDuplicateWitIndexKeyColumnsRuleDescription, columnName, indexName, rowNumber);
}
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
public class Keys
{
@@ -13196,6 +13270,24 @@ namespace Microsoft.SqlTools.ServiceLayer
public const string IndexColumnIsAscendingPropertyTitle = "IndexColumnIsAscendingPropertyTitle";
public const string IndexIncludedColumnsGroupTitle = "IndexIncludedColumnsGroupTitle";
public const string IndexIncludedColumnsPropertyDescription = "IndexIncludedColumnsPropertyDescription";
public const string IndexIncludedColumnsAddColumn = "IndexIncludedColumnsAddColumn";
public const string IndexIncludedColumnsColumnPropertyName = "IndexIncludedColumnsColumnPropertyName";
public const string IndexFilterPredicatePropertyDescription = "IndexFilterPredicatePropertyDescription";
public const string IndexFilterPredicatePropertyTitle = "IndexFilterPredicatePropertyTitle";
public const string TableDesignerColumnsDisplayValueTitle = "TableDesignerColumnsDisplayValueTitle";
@@ -13436,6 +13528,18 @@ namespace Microsoft.SqlTools.ServiceLayer
public const string MutipleCreateTableStatementsInScriptRuleDescription = "MutipleCreateTableStatementsInScriptRuleDescription";
public const string ClusteredIndexCannotHaveIncludedColumnsRuleDescription = "ClusteredIndexCannotHaveIncludedColumnsRuleDescription";
public const string ClusteredIndexCannotHaveFilterPredicateRuleDescription = "ClusteredIndexCannotHaveFilterPredicateRuleDescription";
public const string ColumnCanOnlyAppearOnceInIndexIncludedColumnsRuleDescription = "ColumnCanOnlyAppearOnceInIndexIncludedColumnsRuleDescription";
public const string ColumnCannotDuplicateWitIndexKeyColumnsRuleDescription = "ColumnCannotDuplicateWitIndexKeyColumnsRuleDescription";
private Keys()
{ }

View File

@@ -4815,6 +4815,30 @@ The Query Processor estimates that implementing the following index could improv
<value>Is Ascending</value>
<comment></comment>
</data>
<data name="IndexIncludedColumnsGroupTitle" xml:space="preserve">
<value>Included Columns</value>
<comment></comment>
</data>
<data name="IndexIncludedColumnsPropertyDescription" xml:space="preserve">
<value>The included columns of the index</value>
<comment></comment>
</data>
<data name="IndexIncludedColumnsAddColumn" xml:space="preserve">
<value>Add Column</value>
<comment></comment>
</data>
<data name="IndexIncludedColumnsColumnPropertyName" xml:space="preserve">
<value>Column</value>
<comment></comment>
</data>
<data name="IndexFilterPredicatePropertyDescription" xml:space="preserve">
<value>Filter predicate of the index</value>
<comment></comment>
</data>
<data name="IndexFilterPredicatePropertyTitle" xml:space="preserve">
<value>Filter Predicate</value>
<comment></comment>
</data>
<data name="TableDesignerColumnsDisplayValueTitle" xml:space="preserve">
<value>Columns</value>
<comment></comment>
@@ -5146,4 +5170,22 @@ The Query Processor estimates that implementing the following index could improv
<value>There are multiple table definitions in the script, only the first table can be edited in the designer.</value>
<comment></comment>
</data>
<data name="ClusteredIndexCannotHaveIncludedColumnsRuleDescription" xml:space="preserve">
<value>Included columns are not supported for a clustered index.</value>
<comment></comment>
</data>
<data name="ClusteredIndexCannotHaveFilterPredicateRuleDescription" xml:space="preserve">
<value>Filter predicate is not supported for a clustered index.</value>
<comment></comment>
</data>
<data name="ColumnCanOnlyAppearOnceInIndexIncludedColumnsRuleDescription" xml:space="preserve">
<value>Column with name &apos;{0}&apos; has already been included to the index &apos;{1}&apos;. Row number: {2}.</value>
<comment>.
Parameters: 0 - columnName (string), 1 - indexName (string), 2 - rowNumber (int) </comment>
</data>
<data name="ColumnCannotDuplicateWitIndexKeyColumnsRuleDescription" xml:space="preserve">
<value>Included column with name &apos;{0}&apos; has already been part of the index &apos;{1}&apos; and it cannot be included. Row number: {2}.</value>
<comment>.
Parameters: 0 - columnName (string), 1 - indexName (string), 2 - rowNumber (int) </comment>
</data>
</root>

View File

@@ -2286,6 +2286,12 @@ IndexIsUniquePropertyDescription = Whether the data entered into this index must
TableDesignerIsUniquePropertyTitle = Is Unique
IndexColumnIsAscendingPropertyDescription = Specifies the sort order of the column.
IndexColumnIsAscendingPropertyTitle = Is Ascending
IndexIncludedColumnsGroupTitle = Included Columns
IndexIncludedColumnsPropertyDescription = The included columns of the index
IndexIncludedColumnsAddColumn = Add Column
IndexIncludedColumnsColumnPropertyName = Column
IndexFilterPredicatePropertyDescription = Filter predicate of the index
IndexFilterPredicatePropertyTitle = Filter Predicate
TableDesignerColumnsDisplayValueTitle = Columns
TableDesignerDeleteColumnConfirmationMessage = Removing a column will also remove it from the indexes and foreign keys. Are you sure you want to continue?
TableDesignerGraphTableGroupTitle = Graph Table
@@ -2365,4 +2371,8 @@ MemoryOptimizedTableIdentityColumnRuleDescription = The use of seed and incremen
TableShouldAvoidHavingMultipleEdgeConstraintsRuleDescription = The table has more than one edge constraint on it. This is only useful as a temporary state when modifying existing edge constraints, and should not be used in other cases.
ColumnCannotBeListedMoreThanOnceInPrimaryKeyRuleDescription(string columnName) = Cannot use duplicate column names in primary key, column name: {0}
MemoryOptimizedCannotBeEnabledWhenNotSupportedRuleDescription = Memory-optimized table is not supported for this database.
MutipleCreateTableStatementsInScriptRuleDescription = There are multiple table definitions in the script, only the first table can be edited in the designer.
MutipleCreateTableStatementsInScriptRuleDescription = There are multiple table definitions in the script, only the first table can be edited in the designer.
ClusteredIndexCannotHaveIncludedColumnsRuleDescription = Included columns are not supported for a clustered index.
ClusteredIndexCannotHaveFilterPredicateRuleDescription = Filter predicate is not supported for a clustered index.
ColumnCanOnlyAppearOnceInIndexIncludedColumnsRuleDescription(string columnName, string indexName, int rowNumber) = Column with name '{0}' has already been included to the index '{1}'. Row number: {2}.
ColumnCannotDuplicateWitIndexKeyColumnsRuleDescription(string columnName, string indexName, int rowNumber) = Included column with name '{0}' has already been part of the index '{1}' and it cannot be included. Row number: {2}.

View File

@@ -6254,6 +6254,58 @@ The Query Processor estimates that implementing the following index could improv
<target state="new">Average Row Size</target>
<note></note>
</trans-unit>
<trans-unit id="IndexIncludedColumnsGroupTitle">
<source>Included Columns</source>
<target state="new">Included Columns</target>
<note></note>
</trans-unit>
<trans-unit id="IndexIncludedColumnsPropertyDescription">
<source>The included columns of the index</source>
<target state="new">The included columns of the index</target>
<note></note>
</trans-unit>
<trans-unit id="IndexIncludedColumnsAddColumn">
<source>Add Column</source>
<target state="new">Add Column</target>
<note></note>
</trans-unit>
<trans-unit id="IndexIncludedColumnsColumnPropertyName">
<source>Column</source>
<target state="new">Column</target>
<note></note>
</trans-unit>
<trans-unit id="IndexFilterPredicatePropertyDescription">
<source>Filter predicate of the index</source>
<target state="new">Filter predicate of the index</target>
<note></note>
</trans-unit>
<trans-unit id="IndexFilterPredicatePropertyTitle">
<source>Filter Predicate</source>
<target state="new">Filter Predicate</target>
<note></note>
</trans-unit>
<trans-unit id="ClusteredIndexCannotHaveIncludedColumnsRuleDescription">
<source>Included columns are not supported for a clustered index.</source>
<target state="new">Included columns are not supported for a clustered index.</target>
<note></note>
</trans-unit>
<trans-unit id="ClusteredIndexCannotHaveFilterPredicateRuleDescription">
<source>Filter predicate is not supported for a clustered index.</source>
<target state="new">Filter predicate is not supported for a clustered index.</target>
<note></note>
</trans-unit>
<trans-unit id="ColumnCanOnlyAppearOnceInIndexIncludedColumnsRuleDescription">
<source>Column with name '{0}' has already been included to the index '{1}'. Row number: {2}.</source>
<target state="new">Column with name '{0}' has already been included to the index '{1}'. Row number: {2}.</target>
<note>.
Parameters: 0 - columnName (string), 1 - indexName (string), 2 - rowNumber (int) </note>
</trans-unit>
<trans-unit id="ColumnCannotDuplicateWitIndexKeyColumnsRuleDescription">
<source>Included column with name '{0}' has already been part of the index '{1}' and it cannot be included. Row number: {2}.</source>
<target state="new">Included column with name '{0}' has already been part of the index '{1}' and it cannot be included. Row number: {2}.</target>
<note>.
Parameters: 0 - columnName (string), 1 - indexName (string), 2 - rowNumber (int) </note>
</trans-unit>
<trans-unit id="UpdatableLedger_LabelPart">
<source>Updatable Ledger</source>
<target state="new">Updatable Ledger</target>