Skip to content

Generate correct imports in frontend format#3037

Open
DexterHill0 wants to merge 3 commits intoSeaQL:masterfrom
DexterHill0:fix-frontend-datetime
Open

Generate correct imports in frontend format#3037
DexterHill0 wants to merge 3 commits intoSeaQL:masterfrom
DexterHill0:fix-frontend-datetime

Conversation

@DexterHill0
Copy link
Copy Markdown

PR Info

Bug Fixes

  • When using the --frontend-format argument, if any model column types use external types from libraries like Uuid or any datetime types, for example, the generated code does not include the correct imports; it assumes there's a prelude import, but that is excluded in the frontend format, so the types just error.

Breaking Changes

Should not be a breaking change.

Notes

I added tests for this, following the existing format as best as I can.

@Huliiiiii Huliiiiii requested a review from tyt2y3 April 3, 2026 15:01
@DexterHill0
Copy link
Copy Markdown
Author

Forgot to run the whole test suite, so I missed those failing tests. Hopefully they're fixed now

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.

Frontend format uses TimeDateTimeWithTimeZone, which is sea-orm specific.

1 participant