$ hyphae sql execute --statement CREATE TABLE orders (id BIGINT PRIMARY KEY, customer TEXT NOT NULL, region TEXT NOT NULL, amount BIGINT NOT NULL)
commit_csn: 2
status: "committed"
$ hyphae sql execute --statement INSERT INTO orders ... VALUES (1,'ana','lat',120),(2,'bo','eu',80),(3,'cy','lat',300),(4,'dee','us',45),(5,'eve','eu',210),(6,'fay','lat',60)
commit_csn: 3
status: "committed"
rows_affected: 6
3.0.0 grammar: GROUP BY with HAVING, aliases, grouped ORDER BY. LIMIT is always mandatory.
$ hyphae sql execute --statement SELECT region, COUNT(*) AS n, SUM(amount) AS total FROM orders GROUP BY region HAVING SUM(amount) > 100 ORDER BY total DESC LIMIT 10
columns: ["region", "n", "total"]
rows: [["lat", 3, 480], ["eu", 2, 290]]
visible_csn: 3
A shape outside the admitted grammar never scans — it fails closed with a typed error:
$ hyphae sql execute --statement SELECT * FROM orders WHERE amount IN (SELECT amount FROM orders)
code: "sql_invalid_syntax"
message: "native SQL syntax is invalid or unsupported"
retry: "never"