-
-
Notifications
You must be signed in to change notification settings - Fork 12
fix: support custom types in db pusher #184
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
Conversation
|
Claude finished @ymc9's task —— View job Code Review Complete ✅Reviewing PR: fix: support custom types in db pusher Review Checklist
📋 Change SummaryThis PR adds support for custom types (typeDefs) in the database schema pusher. The changes are minimal and focused: Key Changes:
✅ Code Quality AssessmentPositive Aspects:
Code Structure:// Clean, readable implementation
private isCustomType(type: string) {
return this.schema.typeDefs && Object.values(this.schema.typeDefs).some((def) => def.name === type);
}
// Proper integration in mapFieldType()
if (this.isCustomType(fieldDef.type)) {
return 'jsonb';
}
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing Touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
Status, Documentation and Community
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This pull request fixes support for custom types in the database pusher by ensuring they are properly mapped to PostgreSQL JSONB columns. The change prevents errors when custom types are encountered during database schema generation.
- Adds detection for custom types in field definitions
- Maps custom types to JSONB column type in PostgreSQL
- Updates TODO list with new datasource provider-scoped attributes task
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| packages/runtime/src/client/helpers/schema-db-pusher.ts | Adds custom type detection and JSONB mapping logic |
| TODO.md | Adds new TODO item for datasource provider-scoped attributes |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.
No description provided.