Skip to content

feat(tauri): Postgres schema folders + typed SqlGuard IPC (#1977) - #1978

Merged
ZhuchkaTriplesix merged 2 commits into
epic/tauri-migrationfrom
issue/1977-postgres-schema-folders
Nov 15, 2026
Merged

ZhuchkaTriplesix merged 2 commits into
epic/tauri-migrationfrom
issue/1977-postgres-schema-folders

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Summary

  • Typed ConnectionError::SqlGuard.rule: SqlGuardRule + TS ConnectionError union (prep for feat(rust): dangerous DML confirmation gate #1885).
  • Postgres schema children are Flutter-parity folders: Tables, Views, Materialized views, Functions, Sequences, Indexes, Triggers, Types.
  • Indexes/triggers listed as table.name leaves; functions/sequences/types as named objects.
  • UI glyphs + relation selection updated for folders / materialized views.

Closes #1977

Test plan

  • cargo test --lib (50 passed, incl. live shop folders/functions/indexes)
  • cargo clippy --all-targets -- -D warnings
  • vue-tsc --noEmit
  • Expand Postgres shop in app: folders → Tables/Functions/Indexes
  • CI green

Mirror Flutter pg tree under each schema (Tables/Views/Functions/
Sequences/Indexes/Triggers/Types) and serialize SqlGuardRule as a
typed enum so the UI can branch before #1885 NeedsConfirmation.
@github-actions github-actions Bot added P1 High priority / Core capability tauri Tauri 2 / apps/tauri migration track rust Rust backend (src-tauri / crates) labels Nov 15, 2026
…holders

sqlx requires exact Decode types (i32 for INT4, Decimal for NUMERIC);
the previous i64 catch-all failed and fell through to angle-bracket labels.
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit e3d3a5b into epic/tauri-migration Nov 15, 2026
3 checks passed
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the issue/1977-postgres-schema-folders branch November 15, 2026 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P1 High priority / Core capability 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