feat: Add PostgreSQL database connection support - #19
Open
SatyamPandey-07 wants to merge 1 commit into
Open
Conversation
- Enable users to connect their own PostgreSQL databases via credentials - Added database connection form at /connect-database with credential testing - Extended Prisma schema with connectionType (FILE/DATABASE) and db credentials - Created PostgreSQLConnectionManager for connection handling and schema extraction - Updated backend workflow to detect connectionType and route to appropriate executor - Added plan_generator converters for database schema to graph/metadata format - Updated interpreter to execute queries on PostgreSQL via psycopg2 - Modified dashboard to show Database icon for databases vs FileSpreadsheet for files - Added 'Connect Database' and 'Upload File' buttons to navbar - Created comprehensive documentation and testing guides Backend: - backend/main.py: /query detects DATABASE type, /connect_database endpoint - backend/utils/database_utilities.py: PostgreSQLConnectionManager class - backend/llm/plan_generator.py: Schema converters, State class updates - backend/llm/interpretor.py: execute_postgres_query() support Frontend: - my-app/app/connect-database/page.tsx: Full connection form with validation - my-app/app/api/datasources/connect-db/route.ts: API proxy - my-app/app/dashboard/page.tsx: Conditional icons for FILE vs DATABASE - my-app/components/layout/navbar.tsx: Database connection link Database: - Prisma migration: 20260101113219_add_database_connection - New fields: connectionType, dbHost, dbPort, dbName, dbUsername, dbPassword, displayName
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backend:
Frontend:
Database: