feat(hint): H2 Phase C batch 3 — DML tier-3 hints (ADR-0053)

Per-form hints for querying/changing data: update, delete, show
data/table/tables/relationships/indexes, seed, explain, replay
(insert was the Phase-B exemplar). hint_ids wired on UPDATE/DELETE/
SHOW/SEED/EXPLAIN/REPLAY; catalogue + keys.rs registered. +2 spot
tests (incl. multi-form SHOW disambiguation); 2493 pass / 1 ignored,
clippy clean.
This commit is contained in:
claude@clouddev1
2026-06-15 16:08:57 +00:00
parent 47a08166a4
commit 9c4d520d5c
4 changed files with 101 additions and 6 deletions
+19
View File
@@ -5882,6 +5882,25 @@ mod tests {
assert!(!output_contains(&app, "Remove a table"));
}
// ── Phase C batch 3: DML hints render (incl. multi-form SHOW) ──
#[test]
fn f1_on_update_renders_its_hint_block() {
let mut app = App::new();
type_str(&mut app, "update Customers set email = 'x' ");
f1(&mut app);
assert!(output_contains(&app, "Change values in the rows"));
}
#[test]
fn f1_disambiguates_show_forms() {
let mut app = App::new();
type_str(&mut app, "show relationships");
f1(&mut app);
assert!(output_contains(&app, "List all the relationships"));
assert!(!output_contains(&app, "rows stored in a table"));
}
#[test]
fn messages_command_toggles_verbosity_and_reports() {
let mut app = App::new();