Postgres module

if_some

procedure · 1 overloadsince 0.27.0Source

(value is null or condition): an optional filter, Pg.if_some(team, #code it.team_id == team) with team: Nullable(s64), where team stands for its value inside the condition.

if_some :: (value: $T, condition: Code) -> bool

(value is null or condition): an optional filter, Pg.if_some(team, #code it.team_id == team) with team: Nullable(s64), where team stands for its value inside the condition.

Parameters

value: $T
the optional value.
condition: Code
the filter used when value is set.

Returns

bool

See also