feat(views): add PostgreSQL materialized views support#342
Conversation
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (18 files)
Previous Review Summaries (2 snapshots, latest commit af110d2)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit af110d2)Status: No Issues Found | Recommendation: Merge Files Reviewed (18 files)
Previous review (commit 82f1f77)Status: No Issues Found | Recommendation: Merge Files Reviewed (14 files)
Reviewed by nemotron-3-ultra-550b-a55b-20260604:free · Input: 404K · Output: 2.6K · Cached: 105.7K |
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (14 files)
|
|
Nice work, the default trait impls keep the other drivers clean. A few things I'd want sorted before merging: Translations — only The Refresh has no UI feedback. Index list styling — in Smaller stuff:
Checked and these are fine: double-click goes through |
|
Thanks for the review — agree with all the points. All addressed, except the two you flagged as fine-as-is: the definition isn't byte-exact (added a comment noting it' reconstructed from pg_get_viewdef), and no Rust tests for the four wrappers (matches the existing driver code). |
|
@Davydhh This looks great overall, really nice work. One thing though: as far as I know materialized views in Postgres are read-only — you can't insert, update or delete rows directly, the only write operation is Once that's handled and the conflicts are resolved, I'll go ahead and merge. Thanks! |
Resolve conflicts in two sidebar components: - SidebarViewItem: keep the materialized-view icon (Layers) and refresh spinner; adopt upstream's text-accent-secondary color. - SidebarTableItem: keep the shared SidebarIndexList component; fold upstream's aria-expanded improvement into SidebarIndexList.
|
@debba Good catch, thanks! You're right that materialized views only accept REFRESH, so I've made them read-only in the grid. I've also merged the latest |
Part of #16
Adds PostgreSQL materialized views to the schema tree.
What you can do
CREATE MATERIALIZED VIEW …)REFRESH MATERIALIZED VIEW