Class RedbExpectedIndex

Namespace: redb.Core.Models
Assembly: redb.Core.dll

One index the database is expected to have, as a fresh database of this build has it.

public sealed class RedbExpectedIndex

Inheritance

Object→RedbExpectedIndex

Properties

CreateSql

The statement that creates it on this provider, as a fresh database of this build has it.

public string CreateSql { get; }

IncludedColumns

Included (covered, not keyed) columns, lower case, in no particular order.

public IReadOnlyList<string> IncludedColumns { get; }

IsUnique

Whether it is unique.

public bool IsUnique { get; }

KeyColumns

Key columns in index order, lower case.

public IReadOnlyList<string> KeyColumns { get; }

Name

Index name.

public string Name { get; }

Origin

Base schema or a Pro module.

public RedbIndexOrigin Origin { get; }

Table

Table of the index.

public string Table { get; }

Methods

OneLine(string)

A statement on one line: every run of whitespace outside quoted text ('...', "...", [...]) becomes one space.

public static string OneLine(string sql)

WithOrigin(RedbIndexOrigin)

The same index with another origin.

public RedbExpectedIndex WithOrigin(RedbIndexOrigin origin)

Constructors