Table of Contents

Class DateLiteralValue

Namespace
The.SQL.QIR.Values
Assembly
Instagile.dll

Represents a date determined at runtime relative to the client's timezone.

[MessagePackObject(false)]
public sealed class DateLiteralValue : Value, IEquatable<Value>
Inheritance
DateLiteralValue
Implements
Inherited Members

Constructors

DateLiteralValue(AttributeType, DateUnit)

public DateLiteralValue(AttributeType type, DateUnit unit)

Parameters

type AttributeType
unit DateUnit

Fields

Type

Type of the literal - DateOnly, DateTime or Instant.

[Key(0)]
public readonly AttributeType Type

Field Value

AttributeType

Unit

Resolution of the date value. Day = the beginning of the current day, and so on.

[Key(1)]
public readonly DateUnit Unit

Field Value

DateUnit

Properties

IsAggregate

Whether the value is a projection of an entire relation instead of a single row.

[IgnoreMember]
public override Aggregated IsAggregate { get; }

Property Value

Aggregated

IsLiteral

Whether the value is self-paranthesing.

[IgnoreMember]
public override bool IsLiteral { get; }

Property Value

bool

IsNullable

Whether the value can be NULL at runtime.

[IgnoreMember]
public override bool IsNullable { get; }

Property Value

bool

Methods

Equals(Value?)

Indicates whether the current object is equal to another object of the same type.

public override bool Equals(Value? obj)

Parameters

obj Value

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

WithSource(Table, Table)

public override Value WithSource(Table oldSource, Table newSource)

Parameters

oldSource Table
newSource Table

Returns

Value