coalesceDateTimes static method

DateTimeField coalesceDateTimes(
  1. List values
)

Create sql statement with function COALESCE() function applied for several values, values may be DateTime - DateTimeField.

COALESCE() is used to get first not null value of values, if all values are null, it returns null.

Implementation

static DateTimeField coalesceDateTimes(List values) =>
    _buildCollectionDateTimesValuesFunction('COALESCE', values);