Table of Contents

Class SqlCreateIndexNode

Namespace
LfrlAnvil.Sql.Expressions
Assembly
LfrlAnvil.Sql.Core.dll

Represents an SQL syntax tree statement node that defines creation of a single index.

public sealed class SqlCreateIndexNode : SqlNodeBase, ISqlStatementNode
Inheritance
SqlCreateIndexNode
Implements
Inherited Members
Extension Methods

Properties

Columns

Collection of expressions that define this index.

public ReadOnlyArray<SqlOrderByNode> Columns { get; }

Property Value

ReadOnlyArray<SqlOrderByNode>

Filter

Optional filter condition.

public SqlConditionNode? Filter { get; }

Property Value

SqlConditionNode

IsUnique

Specifies whether or not this index is unique.

public bool IsUnique { get; }

Property Value

bool

Name

Index's name.

public SqlSchemaObjectName Name { get; }

Property Value

SqlSchemaObjectName

ReplaceIfExists

Specifies whether or not the index should be replaced if it already exists in DB.

public bool ReplaceIfExists { get; }

Property Value

bool

Table

Table on which this index is created.

public SqlRecordSetNode Table { get; }

Property Value

SqlRecordSetNode