Table of Contents

Struct SqlNodeInterpreterContextSnapshot

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

Represents a snapshot of an SqlNodeInterpreterContext state.

public readonly struct SqlNodeInterpreterContextSnapshot
Inherited Members

Properties

Parameters

Collection of SQL parameter nodes.

public ReadOnlySpan<SqlParameterNode> Parameters { get; }

Property Value

ReadOnlySpan<SqlParameterNode>

Sql

Underlying SQL statement.

public string Sql { get; }

Property Value

string

Methods

ToCondition()

Creates a new SqlRawConditionNode instance from this snapshot.

[Pure]
public SqlRawConditionNode ToCondition()

Returns

SqlRawConditionNode

New SqlRawConditionNode instance.

ToExpression(TypeNullability?)

Creates a new SqlRawExpressionNode instance from this snapshot.

[Pure]
public SqlRawExpressionNode ToExpression(TypeNullability? type = null)

Parameters

type TypeNullability?

Optional runtime type of the result of this expression.

Returns

SqlRawExpressionNode

New SqlRawExpressionNode instance.

ToQuery()

Creates a new SqlRawQueryExpressionNode instance from this snapshot.

[Pure]
public SqlRawQueryExpressionNode ToQuery()

Returns

SqlRawQueryExpressionNode

New SqlRawQueryExpressionNode instance.

ToStatement()

Creates a new SqlRawStatementNode instance from this snapshot.

[Pure]
public SqlRawStatementNode ToStatement()

Returns

SqlRawStatementNode

New SqlRawStatementNode instance.

ToString()

Returns a string representation of this SqlNodeInterpreterContextSnapshot instance.

[Pure]
public override string ToString()

Returns

string

String representation.