From ac94432bab8c9abaf3af0026eb9b0709148b3881 Mon Sep 17 00:00:00 2001 From: Roman Wu Date: Fri, 25 Jul 2025 19:31:56 -0400 Subject: [PATCH 1/6] Add PostgreSQL schema support to SQL connector - Add schema configuration option to PostgreSQL connector - Update SQL queries to filter by specified schema - Add schema input field to frontend connection modal (PostgreSQL only) - Default to 'public' schema when no custom schema specified - Add getQualifiedTableName() method for schema.table format --- .../NewConnectionModal.jsx | 18 ++++++++++++++++++ .../sql-agent/SQLConnectors/Postgresql.js | 15 +++++++++++++-- 2 files changed, 31 insertions(+), 2 deletions(-) diff --git a/frontend/src/pages/Admin/Agents/SQLConnectorSelection/NewConnectionModal.jsx b/frontend/src/pages/Admin/Agents/SQLConnectorSelection/NewConnectionModal.jsx index 9c5327b99b7..0803ecd138e 100644 --- a/frontend/src/pages/Admin/Agents/SQLConnectorSelection/NewConnectionModal.jsx +++ b/frontend/src/pages/Admin/Agents/SQLConnectorSelection/NewConnectionModal.jsx @@ -36,6 +36,7 @@ const DEFAULT_CONFIG = { host: null, port: null, database: null, + schema: null, encrypt: false, }; @@ -269,6 +270,23 @@ export default function NewSQLConnection({ /> + {engine === "postgresql" && ( +
+ + +
+ )} + {engine === "sql-server" && (