Selecto.Advanced.CaseExpression.Spec (Selecto v0.3.8)

Specification for CASE expression definitions.

Link to this section Summary

Link to this section Types

@type case_type() :: :simple | :searched
@type t() :: %Selecto.Advanced.CaseExpression.Spec{
  alias: String.t() | nil,
  column: String.t() | nil,
  else_clause: any() | nil,
  id: String.t(),
  type: case_type(),
  validated: boolean(),
  when_clauses: [when_clause()]
}
Link to this type

when_clause()

@type when_clause() :: {any(), any()} | {[{String.t(), any()}], any()}