Skip to content

feat(rust): staging apply + e2e for Postgres and MySQL (#1992) - #1993

Merged
ZhuchkaTriplesix merged 1 commit into
epic/tauri-migrationfrom
issue/1992-staging-apply-pg-mysql
Nov 15, 2026
Merged

ZhuchkaTriplesix merged 1 commit into
epic/tauri-migrationfrom
issue/1992-staging-apply-pg-mysql

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Summary

  • apply_plan_postgres / apply_plan_mysql (+ staging helpers) — same success/clear vs failure/rollback semantics as SQLite
  • Live e2e: temp table → stage update/insert/delete → apply → assert; plus PK-conflict rollback
  • Skips cleanly without live DB (QUERYA_SKIP_PG / QUERYA_SKIP_MYSQL or connect failure)

Test plan

  • cargo test --locked staging — 24 (incl. 4 PG/MySQL live e2e on this machine)
  • cargo clippy --locked -- -D warnings
  • CI without PG/MySQL: live tests skip, rest green

Closes #1992

Transactional apply via sqlx pools; temp-table e2e covers success and
rollback on both drivers (skips when live DB unavailable).

Closes #1992
@github-actions github-actions Bot added P2 Medium priority / Parity & Refactoring tauri Tauri 2 / apps/tauri migration track rust Rust backend (src-tauri / crates) labels Nov 15, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit 38338cd into epic/tauri-migration Nov 15, 2026
3 checks passed
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the issue/1992-staging-apply-pg-mysql branch November 15, 2026 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Medium priority / Parity & Refactoring rust Rust backend (src-tauri / crates) tauri Tauri 2 / apps/tauri migration track

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant