xsql
Language

Settings

Script-scoped global settings — FORMAT, IGNORE_COMMENTS, ANALYZE.

SET <setting> = ON|OFF is a global setting, not an attribute write — it needs no USE, can appear anywhere in a script, and applies to the whole run. In the REPL, settings persist across statements in the same session.

SET FORMAT = OFF;          compact single-line XML output
SET IGNORE_COMMENTS = OFF; preserve XML comments in loaded documents
ANALYZE;                   print per-stage timings to stderr

Accepted values: ON/OFF, also TRUE/FALSE/1/0. Setting names are case-insensitive.

SettingDefaultEffect
FORMATONON: pretty-printed XML output. OFF: compact, one line per document/selected element.
IGNORE_COMMENTSONON: XML comments are dropped when parsing. OFF: comments are preserved and re-emitted (they're never loop elements — a FOREACH never binds to a comment).
ANALYZEOFFON: after the run, prints a per-stage timing report to stderr — see CLI: Diagnostics.

ANALYZE; on its own is shorthand for SET ANALYZE = ON;.