Build, validate and append a row from individual field values.

SolidGroundUX DocumentationSolidGroundUX
NL

fn: sgnd_dt_append

Purpose

Build, validate and append a row from individual field values.

Arguments

  • $1 — Schema.
  • $2 — Name of table array. $3... Values corresponding to the schema columns.

Side effects

Adds a row to the table array and emits a debug message.

Returns

  • 0 on append; 1 for an invalid schema or field values.

Usage

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