-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDbaIndexInfo.cs
More file actions
25 lines (19 loc) · 989 Bytes
/
Copy pathDbaIndexInfo.cs
File metadata and controls
25 lines (19 loc) · 989 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
namespace DBAClientX.Metadata;
/// <summary>
/// Describes an index column. Multi-column indexes return one row per indexed column.
/// </summary>
public sealed record DbaIndexInfo(string Schema, string Table, string Name)
{
/// <summary>Provider-specific index type or access method when available.</summary>
public string? IndexType { get; init; }
/// <summary>Indicates whether the index is unique.</summary>
public bool IsUnique { get; init; }
/// <summary>Indicates whether the index backs a primary key.</summary>
public bool IsPrimaryKey { get; init; }
/// <summary>Indexed column name when the provider exposes a direct column mapping.</summary>
public string? Column { get; init; }
/// <summary>One-based ordinal position of the column inside the index.</summary>
public int Ordinal { get; init; }
/// <summary>Indicates descending sort order when the provider exposes it.</summary>
public bool? IsDescending { get; init; }
}