Struct SqlWindowFrameBoundary
- Namespace
- LfrlAnvil.Sql.Expressions.Traits
- Assembly
- LfrlAnvil.Sql.Core.dll
Represents a boundary of an SqlWindowFrameNode.
public readonly struct SqlWindowFrameBoundary
- Inherited Members
Fields
CurrentRow
Represents a CurrentRow boundary.
public static readonly SqlWindowFrameBoundary CurrentRow
Field Value
UnboundedFollowing
Represents an unlimited Following boundary.
public static readonly SqlWindowFrameBoundary UnboundedFollowing
Field Value
UnboundedPreceding
Represents an unlimited Preceding boundary.
public static readonly SqlWindowFrameBoundary UnboundedPreceding
Field Value
Properties
Direction
SqlWindowFrameBoundaryDirection of this boundary.
public SqlWindowFrameBoundaryDirection Direction { get; }
Property Value
Expression
Optional offset expression.
public SqlExpressionNode? Expression { get; }
Property Value
Methods
Following(SqlExpressionNode)
Creates a new SqlWindowFrameBoundary instance with Following direction and a custom offset Expression.
[Pure]
public static SqlWindowFrameBoundary Following(SqlExpressionNode expression)
Parameters
expression
SqlExpressionNodeOffset expression to use.
Returns
- SqlWindowFrameBoundary
New SqlWindowFrameBoundary instance.
Preceding(SqlExpressionNode)
Creates a new SqlWindowFrameBoundary instance with Preceding direction and a custom offset Expression.
[Pure]
public static SqlWindowFrameBoundary Preceding(SqlExpressionNode expression)
Parameters
expression
SqlExpressionNodeOffset expression to use.
Returns
- SqlWindowFrameBoundary
New SqlWindowFrameBoundary instance.