Skip to content

ideas-board: tagged multi-region-check demo (SeaORM path) - #2

Merged
felipeg48 merged 1 commit into
mainfrom
tutorial/mr-check
Nov 24, 2026
Merged

felipeg48 merged 1 commit into
mainfrom
tutorial/mr-check

Conversation

@felipeg48

Copy link
Copy Markdown
Contributor

Adds a tagged, user-facing demo of the 0.2.0 #[derive(CrdbLocality)] multi-region annotation check to the ideas-board example, for docs-tutorial includes.

Tags (Rust // tag::NAME[]):

  • mr-check-entity — SeaORM ideas entity, #[crdb(regional_by_row)] + #[crdb(region)].
  • mr-check-usage — verify_multiregion(&db, Mode::Warn, vec![describe::<regional::Entity>()]) at startup in the live demo.
  • mr-check-report — offline describe assert + an #[ignore]d live IT that stays green on the single-node CI cluster (warn mode tolerates a non-multi-region table).

Example-only; no library/API changes. cargo fmt + cargo clippy --all-targets -- -D warnings clean; offline test passes, live IT ignored.

Demonstrate the 0.2.0 CrdbLocality derive multi-region annotation check in the
ideas-board example, tagged for docs-tutorial includes:

- mr-check-entity: a SeaORM "ideas" entity declared regional_by_row with its
  crdb(region) homing column.
- mr-check-usage: verify_multiregion(&db, Mode::Warn, vec![describe::<..>()])
  run at startup in the live demo.
- mr-check-report: offline describe assert + an ignored live IT that stays green
  on the single-node CI cluster (warn mode tolerates non-multi-region).
@felipeg48
felipeg48 merged commit 90985cf into main Nov 24, 2026
2 checks passed
@felipeg48
felipeg48 deleted the tutorial/mr-check branch November 24, 2026 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant