Skip to content

Database operators

Public

The Database family contains 2 operators. Read/write the tenant Postgres schema.

Executes one or more INSERT/UPDATE/DELETE statements as a single transaction under tenant RLS. Each statement is allowlisted (no DDL) and parameterised. Writes an audit row to glyph.operator_audit on commit.

Version 1.0.0 · Semantics side_effect · Visibility advanced

FieldTypeRequiredDefaultDescription
audit_labelstringyes—Label recorded in the operator_audit row for traceability.
schema”glyph” | “app”no—Optional schema scope hint. Statements still use fully-qualified table names.
statementsobject[]yes—
PortTypeRequiredDescription
inputanynoInput
PortTypeRequiredDescription
outputobjectnoOutput

Executes a parameterized SQL query.

Version 1.0.0 · Semantics side_effect · Visibility advanced

FieldTypeRequiredDefaultDescription
paramsarrayno—Query parameters (positional).
querystringyes—Parameterized SQL query (use $1, $2, …).
PortTypeRequiredDescription
inputanynoInput
PortTypeRequiredDescription
row_countintegernoRow Count
rowsarraynoRows

Every operator above is rendered from its JSON schema in /opt/glyph/schemas/operators/:

  • schemas/operators/db.mutate.json
  • schemas/operators/db.query.json