IntervalDecoding enum

How values of type interval are decoded.

Inheritance
Available extensions

Values

duration → const IntervalDecoding

Decodes as Duration, as versions before 3.0.0 did.

Intervals with months or days cannot be represented as a Duration (a month has no fixed length and a day may have 23 or 25 hours); for those values an UnimplementedError is thrown, the query fails and the connection remains usable. Use pgInterval to read them.

pgInterval → const IntervalDecoding

Decodes every interval as a PgInterval (months, days and microseconds), without losing information (default). PgInterval.toDuration() converts values without months.

text → const IntervalDecoding

Decodes as a String in PostgreSQL's default output format (IntervalStyle postgres): 1 day 02:03:04, 1 year 2 mons.

Properties

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

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<IntervalDecoding>
A constant List of the values in this enum, in order of their declaration.