Read a column from a table row by numeric index.

SolidGroundUX DocumentationSolidGroundUX
NL

fn: sgnd_dt_get

Purpose

Read a column from a table row by numeric index.

Arguments

  • $1 — Schema.
  • $2 — Name of table array.
  • $3 — Zero-based row index.
  • $4 — Column name.

Output

Writes the field value to stdout.

Returns

  • 0 when row and column exist; 1 otherwise.

Usage

  rows=("Ada|admin")
  sgnd_dt_get "name|role" rows 0 role