Return a PSV row with one named field replaced.

SolidGroundUX DocumentationSolidGroundUX
NL

fn: sgnd_dt_row_set

Purpose

Return a PSV row with one named field replaced.

Arguments

  • $1 — Schema.
  • $2 — Original pipe-separated row.
  • $3 — Column name.
  • $4 — Replacement field value.

Output

Writes a new PSV row; does not modify a table array.

Returns

  • 0 on success; 1 if the column or new value is invalid.

Usage

  sgnd_dt_row_set "name|role" "Ada|admin" role editor