Next: Result formats, Previous: Connection, Up: starter-db [Contents]
Keywords are English and case-insensitive. Names and times use
"…" or '…' (times UTC:
"2026-11-15" or "2026-11-15T06:00:00"). Statements end
with ‘;’.
SET HOST "192.168.1.2"; SET PORT 3306; SET USER "writer"; SET PASSWORD "secret"; SET DATABASE "STARTER"; SET FORMAT csv; SHOW CONNECTION; CONNECT; DISCONNECT; PING;
SHOW CONNECTION prints host/port/user/database and whether the
password is ‘set’/‘unset’ (never the secret itself).
LIST SERVICES; LIST SERVICES MATCHING "Core"; STATISTICS; STATISTICS OF "ST:Core"; LIST INPUTS; LIST OUTPUTS MATCHING "T01"; DESCRIBE INPUT "T01:temp_current"; READ INPUT "T01:temp_current" SINCE "2026-11-15" LAST 20; LATEST INPUTS; LATEST OUTPUT "Lamp:on"; RELATE INPUT "a", OUTPUT "b" SINCE "2026-11-15T06:00:00" LAST 50; HELP; HELP dump; QUIT;
READ / RELATE accept optional SINCE / UNTIL /
LAST n (LAST defaults to 100 for READ).
RELATE returns long rows (time, kind,
name, value).
Bulk export still in plant terms:
DUMP SERVICES MATCHING /^ST:/ WITH STATS; DUMP STATS MATCHING /Core|Peer/; DUMP INPUTS MATCHING /T01/ WITH LABELS WITH HISTORY SINCE "2026-11-01" LAST 500; DUMP OUTPUTS MATCHING /Light$/ WITH HISTORY LAST 200;
MATCHING accepts /regex/ (POSIX ERE) or a
substring string. WITH HISTORY defaults LAST to 1000 when
omitted.
There is no SHOW TABLES, no schema dump, and no write /
DELETE path in the language.