Update a named column in a table row by numeric index.

SolidGroundUX DocumentationSolidGroundUX
NL

fn: sgnd_dt_set

Purpose

Update a named column in a table row by numeric index.

Arguments

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

Side effects

Replaces one row in the named table array.

Returns

  • 0 on update; 1 for an invalid index, column, or field value.

Usage

  rows=("Ada|admin")
  sgnd_dt_set "name|role" rows 0 role editor