Class TableDrift
- Namespace
- DynaSharp
- Assembly
- DynaSharp.dll
One way in which a table that IfNotExists() found differs from what the command declares, in Drift. The command changes nothing about it: it is for a log line,
a health check or a test that pins the schema, and for code that acts on it, such as an UpdateTable that adds a missing global index.
public sealed record TableDrift : IEquatable<TableDrift>
- Inheritance
-
TableDrift
- Implements
- Inherited Members
Constructors
TableDrift(TableDriftKind, string?, string)
One way in which a table that IfNotExists() found differs from what the command declares, in Drift. The command changes nothing about it: it is for a log line,
a health check or a test that pins the schema, and for code that acts on it, such as an UpdateTable that adds a missing global index.
public TableDrift(TableDriftKind Kind, string? IndexName, string Description)
Parameters
KindTableDriftKindWhat differs.
IndexNamestringThe index, for IndexMissing and IndexDiffers; otherwise null.
DescriptionstringWhat the command expects and what the table has, with the table, the index and the attributes named, and what follows from it. It is schema, so it holds names of tables, indexes and attributes, and never a key or an item.
Properties
Description
What the command expects and what the table has, with the table, the index and the attributes named, and what follows from it. It is schema, so it holds names of tables, indexes and attributes, and never a key or an item.
public string Description { get; init; }
Property Value
IndexName
The index, for IndexMissing and IndexDiffers; otherwise null.
public string? IndexName { get; init; }
Property Value
Kind
What differs.
public TableDriftKind Kind { get; init; }
Property Value
Methods
Deconstruct(out TableDriftKind, out string?, out string)
public void Deconstruct(out TableDriftKind Kind, out string? IndexName, out string Description)
Parameters
KindTableDriftKindIndexNamestringDescriptionstring
Equals(TableDrift?)
public bool Equals(TableDrift? other)
Parameters
otherTableDrift
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(TableDrift?, TableDrift?)
public static bool operator ==(TableDrift? left, TableDrift? right)
Parameters
leftTableDriftrightTableDrift
Returns
operator !=(TableDrift?, TableDrift?)
public static bool operator !=(TableDrift? left, TableDrift? right)
Parameters
leftTableDriftrightTableDrift