MssqlTemporalGrain enum
Calendar boundaries supported by MssqlDateTruncate.
Weeks require an explicit bucket origin, while second-based truncation can
overflow SQL Server's DATEDIFF integer range.
Values
- year → const MssqlTemporalGrain
-
const MssqlTemporalGrain('year', wholeDays: true) - quarter → const MssqlTemporalGrain
-
const MssqlTemporalGrain('quarter', wholeDays: true) - month → const MssqlTemporalGrain
-
const MssqlTemporalGrain('month', wholeDays: true) - day → const MssqlTemporalGrain
-
const MssqlTemporalGrain('day', wholeDays: true) - hour → const MssqlTemporalGrain
-
const MssqlTemporalGrain('hour', wholeDays: false) - minute → const MssqlTemporalGrain
-
const MssqlTemporalGrain('minute', wholeDays: false)
Properties
- datePart → String
-
SQL Server
datepartkeyword.final - hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- wholeDays → bool
-
Whether snapping to this grain always lands on midnight, and so can be
narrowed to a
date.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
MssqlTemporalGrain> - A constant List of the values in this enum, in order of their declaration.