Append an already formatted PSV row to a table array.

SolidGroundUX DocumentationSolidGroundUX
NL

fn: sgnd_dt_insert

Purpose

Append an already formatted PSV row to a table array.

Description

Validates the schema and the number of row fields; does not revalidate individual field contents.

Arguments

  • $1 — Schema.
  • $2 — Name of the indexed table array.
  • $3 — Complete PSV row.

Side effects

Appends a row to the named array.

Returns

  • 0 when the schema and field count are valid; 1 otherwise.

Usage

  rows=()
  sgnd_dt_insert "name|role" rows "Ada|admin"