Explorer

definy.sql-column-value

description
The value of the column named name from index (null if there is no such column)
type
Fn(row: @definy.sql-row, name: String, index: Number) -> @definy.sql-value
expression
fn(row$0, name$1, index$2) =>
  match @core.list-get(list: $0, index: $2) {
    #some(column$3) =>
      match @core.equal(left: $3.name, right: $1) {
        true =>
          $3.value,
        false =>
          @definy.sql-column-value(row: $0, name: $1, index: @core.plus(left: $2, right: 1))
      },
    #none(_) =>
      #null<@definy.sql-value>
  }
visibility
public
definy.sql-column-value (project definy, branch release-time-compare, snapshot JJrRgQW_LZN6tN8CbYr1dN7HosqNTuIWWYx7ACbt1n0)
id: FDCsciV7_ZmZanjrwrdFOofSP1semeMoKydCig2Tv3Q
content hash: WZuUf7ncYy9iyyK0ixUY0Buo3AIPRvgUQwdS832Q69s