Repository navigation
ideas-board: tagged multi-region-check demo (SeaORM path) - #2
Merged
Merged
Conversation
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).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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— SeaORMideasentity,#[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— offlinedescribeassert + 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 warningsclean; offline test passes, live IT ignored.