Skip to content

Add Schema Support for PostgreSQL Tables #121

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

M4teus2020
Copy link

Changes

  • Added support for handling table schemas in PostgreSQL operations
  • Modified table name handling to include schema information
  • Updated SQL queries to properly reference schema-qualified tables
  • Added helper functions to parse and format table names with schemas

Technical Details

  • Added getTableSchema and getTableName utility functions to handle schema.table format
  • Updated table creation SQL to include schema name in the generated CREATE TABLE statement
  • Modified table listing to include schema information
  • Updated column and foreign key queries to respect table schemas
  • Fixed test cases to account for schema-qualified table names

Impact

This change improves PostgreSQL support by properly handling tables in different schemas, not just the default 'public' schema. All database operations now correctly reference tables with their schema names.

Testing

  • Updated existing test cases to verify schema handling
  • Verified table creation with schema-qualified names

- Add functions to handle schemas and table names
- Update queries to include schema in operations
- Update tests to reflect schema changes

Closes damms005#120
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