optional<T> method

Selection<T?> optional<T>(
  1. Selection<T> selection
)

Decodes selection only when this alias is present in a joined row.

A missing left-joined row produces null. This guard establishes presence only for this alias; independently optional aliases need their own guards.

Implementation

Selection<T?> optional<T>(Selection<T> selection) =>
    _OptionalJoin(this, selection);