f1e9484af3
End-to-end `seed <table> [count]` path, both modes: - Command::Seed AST + grammar node (show-data table slot + optional positional count) + REGISTRY registration + build_seed. - Runtime dispatch -> Database::seed -> Request::Seed worker arm -> do_seed. - do_seed (Phase-1 skeleton): generates whole rows for non-FK, non-autogen columns via the seed library and inserts them one at a time through do_insert (reusing validation / autogen autofill / FK-error / persistence). One undo step (snapshot_then wraps it) and one history.log line (only the first row carries the source); default count 20. - help (`help seed`) + parse-usage catalog entries. - Reuses CommandOutcome::Insert for the auto-show; a dedicated SeedResult (capped preview + advisory) replaces it in P1.3. 5 Tier-3 integration tests (parse, populate+persist, default-20, reproducible --seed, one history line). 2327 pass / 0 fail / 0 skip, clippy all-targets clean. Deferred to P1.3: FK sampling, identifier/constraint uniqueness, CHECK derivation, block guard, capped preview, advisory, multi-row path. Deferred to P1.4: completion/highlight/hint/validity wiring + --seed flag.
40 lines
1.0 KiB
Rust
40 lines
1.0 KiB
Rust
//! Consolidated integration-test binary (see
|
|
//! `docs/plans/20260602-test-consolidation.md`).
|
|
//!
|
|
//! Each former top-level `tests/*.rs` is now a module here, so the
|
|
//! whole suite links into **one** binary instead of 26 — turning an
|
|
//! edit-the-lib-then-test cycle from 26 separate links into one.
|
|
//! `tests/typing_surface_matrix.rs` stays a separate binary (it is
|
|
//! already a consolidated `mod`-based target).
|
|
|
|
mod case_insensitive_names;
|
|
mod column_op_guards;
|
|
mod compound_fk;
|
|
mod engine_vocabulary_audit;
|
|
mod friendly_enrichment;
|
|
mod help_command;
|
|
mod iteration2_persistence;
|
|
mod iteration3_rebuild;
|
|
mod iteration4a_rebuild_command;
|
|
mod iteration4b_lifecycle_commands;
|
|
mod iteration5_export_import;
|
|
mod iteration6_resume_history;
|
|
mod m2n;
|
|
mod parse_error_pedagogy;
|
|
mod project_lifecycle;
|
|
mod replay_command;
|
|
mod seed;
|
|
mod sql_alter_table;
|
|
mod sql_create_index;
|
|
mod sql_create_table;
|
|
mod sql_delete;
|
|
mod sql_dml_e2e;
|
|
mod sql_drop_index;
|
|
mod sql_drop_table;
|
|
mod sql_insert;
|
|
mod sql_select;
|
|
mod sql_update;
|
|
mod show_list;
|
|
mod undo_snapshots;
|
|
mod walking_skeleton;
|