Table of Contents

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

Kind TableDriftKind

What differs.

IndexName string

The index, for IndexMissing and IndexDiffers; otherwise null.

Description string

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.

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

string

IndexName

The index, for IndexMissing and IndexDiffers; otherwise null.

public string? IndexName { get; init; }

Property Value

string

Kind

What differs.

public TableDriftKind Kind { get; init; }

Property Value

TableDriftKind

Methods

Deconstruct(out TableDriftKind, out string?, out string)

public void Deconstruct(out TableDriftKind Kind, out string? IndexName, out string Description)

Parameters

Kind TableDriftKind
IndexName string
Description string

Equals(TableDrift?)

public bool Equals(TableDrift? other)

Parameters

other TableDrift

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(TableDrift?, TableDrift?)

public static bool operator ==(TableDrift? left, TableDrift? right)

Parameters

left TableDrift
right TableDrift

Returns

bool

operator !=(TableDrift?, TableDrift?)

public static bool operator !=(TableDrift? left, TableDrift? right)

Parameters

left TableDrift
right TableDrift

Returns

bool