Skip to content
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

[FIX #259] use custom types when importing from postgresql #261

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

csc530
Copy link
Contributor

@csc530 csc530 commented Oct 12, 2024

fixes #259 and allows for composite types to be imported as well.

I tested this against #259 SQL file and test.sql.txt

again let me know if any changes need to be made there are any issues or test cases that should be considered :)


related issues I discovered

  • proper export of composite types -- using "export SQL" (syntax errors -- missing commas between fields)
  • imported types containing enums are not maintained (presumably for composite types too)

I'll look into fixing these in a separate pr, probably

Copy link

vercel bot commented Oct 12, 2024

@csc530 is attempting to deploy a commit to the dottle's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

vercel bot commented Oct 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
drawdb ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 12, 2024 7:54am

used prettier for formatting as per contributing.md

the type/enum check is case sensitive as there is no way I found to verify if the type was declared in quotes (case-sensitive) or without (to-lowercase by postgres)
@csc530 csc530 force-pushed the 259-postgres-enum branch from f3d6219 to 965d1bb Compare October 12, 2024 14:36
@csc530 csc530 changed the title use custom types when importing from postgresql [FIX #259]: use custom types when importing from postgresql Oct 12, 2024
@csc530 csc530 changed the title [FIX #259]: use custom types when importing from postgresql [FIX #259] use custom types when importing from postgresql Oct 12, 2024
@1ilit 1ilit force-pushed the main branch 2 times, most recently from 0ca7470 to d389c28 Compare November 10, 2024 09:11
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.

[BUG] Enums are created but are not applied in the table columns, when importing from a SQL file
1 participant