Join values into a validated PSV row in schema order.

SolidGroundUX DocumentationSolidGroundUX
NL

fn: sgnd_dt_make_row

Purpose

Join values into a validated PSV row in schema order.

Description

Rejects a mismatched field count and values containing a pipe or newline.

Arguments

  • $1 — Schema string. $2... One field value per schema column, in order.

Output

Writes a pipe-separated row to stdout.

Returns

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

Usage

  sgnd_dt_make_row "name|role" "Ada" "admin"