Explorer

definy.sql-first-text

description
The column named name of the first row of the results as text (empty if there is no row)
type
Fn(results: List<List<@definy.sql-row>>, name: String) -> String
expression
fn(results$0, name$1) =>
  match @core.list-get(list: @definy.sql-rows-concat(results: $0, index: 0), index: 0) {
    #some(row$2) =>
      @definy.sql-text(row: $2, name: $1),
    #none(_) =>
      ""
  }
visibility
public
definy.sql-first-text (project definy, branch main, snapshot l0VFjJZP174d8CbZWFoujAGTYjgsQu4uTq5uWCZaXgo)
id: hxWuKHwMVEewb5oiFcMHWSQdvBq5dJ-6Y0rlySB8z5M
content hash: IgazxKRxKDKJhLJI8vTpx8w7C5zZzzZcbxJNaGx1mIY