Skip to content

feat(views): add PostgreSQL materialized views support#342

Open
Davydhh wants to merge 1 commit into
TabularisDB:mainfrom
Davydhh:feat/postgres-materialized-views
Open

feat(views): add PostgreSQL materialized views support#342
Davydhh wants to merge 1 commit into
TabularisDB:mainfrom
Davydhh:feat/postgres-materialized-views

Conversation

@Davydhh

@Davydhh Davydhh commented Jun 20, 2026

Copy link
Copy Markdown

Part of #16

Adds PostgreSQL materialized views to the schema tree.

What you can do

  • Browse materialized views in a dedicated Materialized Views group per schema
  • Expand to see columns and indexes
  • Show definition (read-only CREATE MATERIALIZED VIEW …)
  • Refresh via REFRESH MATERIALIZED VIEW
  • Open data / count rows like any other relation

@kilo-code-bot

kilo-code-bot Bot commented Jun 20, 2026

Copy link
Copy Markdown

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (14 files)
  • src-tauri/src/commands.rs - 4 new Tauri commands for materialized views
  • src-tauri/src/drivers/driver_trait.rs - Trait default impls + capability flag
  • src-tauri/src/drivers/mysql/mod.rs - materialized_views: false capability
  • src-tauri/src/drivers/postgres/mod.rs - Full PostgreSQL implementation
  • src-tauri/src/drivers/sqlite/mod.rs - materialized_views: false capability
  • src-tauri/src/lib.rs - Command registrations
  • src/components/layout/ExplorerSidebar.tsx - Context menu for materialized views
  • src/components/layout/sidebar/SidebarSchemaItem.tsx - Tree group rendering
  • src/components/layout/sidebar/SidebarViewItem.tsx - Columns + indexes expansion
  • src/contexts/DatabaseContext.ts - materializedViews field added to SchemaData
  • src/contexts/DatabaseProvider.tsx - Loading materialized views in schema fetches
  • src/i18n/locales/en.json - Localization strings
  • src/types/plugins.ts - Frontend materialized_views capability
  • tests/components/layout/sidebar/SidebarViewItem.test.tsx - Tests for materialized view path

Reviewed by kimi-k2.6-20260420 · Input: 125.4K · Output: 21.6K · Cached: 1.6M

@kilo-code-bot

kilo-code-bot Bot commented Jun 20, 2026

Copy link
Copy Markdown

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (14 files)
  • src-tauri/src/commands.rs - 4 new Tauri commands for materialized views
  • src-tauri/src/drivers/driver_trait.rs - Trait default impls + capability flag
  • src-tauri/src/drivers/mysql/mod.rs - materialized_views: false capability
  • src-tauri/src/drivers/postgres/mod.rs - Full PostgreSQL implementation
  • src-tauri/src/drivers/sqlite/mod.rs - materialized_views: false capability
  • src-tauri/src/lib.rs - Command registrations
  • src/components/layout/ExplorerSidebar.tsx - Context menu for materialized views
  • src/components/layout/sidebar/SidebarSchemaItem.tsx - Tree group rendering
  • src/components/layout/sidebar/SidebarViewItem.tsx - Columns + indexes expansion
  • src/contexts/DatabaseContext.ts - materializedViews field added to SchemaData
  • src/contexts/DatabaseProvider.tsx - Loading materialized views in schema fetches
  • src/i18n/locales/en.json - Localization strings
  • src/types/plugins.ts - Frontend materialized_views capability
  • tests/components/layout/sidebar/SidebarViewItem.test.tsx - Tests for materialized view path

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