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

Support Postgres jsonb in entity generation #51

Merged
merged 1 commit into from
Mar 26, 2022

Conversation

silverlyra
Copy link
Contributor

Fixes

sea-orm-cli generate entity currently treats Postgres jsonb columns as an unknown custom datatype, and gives its model field type String. It already supports json columns, and sea-query already supports json_binary in ColumnDef, so this just fills in the missing pieces to recognize jsonb.

Breaking Changes

No breaking changes.

Changes

No other changes.

@billy1624
Copy link
Member

Hey @silverlyra, thanks for contributing! Sorry for the delay.

I just added the parsing part and committed to... Could you please review it and cherry-pick it to this PR? Thanks!

@silverlyra silverlyra force-pushed the postgres-jsonb-writer branch from b57209f to 455953a Compare March 22, 2022 18:12
@silverlyra
Copy link
Contributor Author

@billy1624 ah thanks! updated this PR

Copy link
Member

@tyt2y3 tyt2y3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much

@tyt2y3 tyt2y3 merged commit 08aa398 into SeaQL:master Mar 26, 2022
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.

3 participants