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

SeaORM Entity Generator does not support Blob fields. #684

Closed
johnttan opened this issue Apr 27, 2022 · 1 comment · Fixed by SeaQL/sea-schema#61
Closed

SeaORM Entity Generator does not support Blob fields. #684

johnttan opened this issue Apr 27, 2022 · 1 comment · Fixed by SeaQL/sea-schema#61
Assignees

Comments

@johnttan
Copy link

This was observed with sea-orm-cli generate entity on a table with a BLOB field.

It generated a Model struct with this field

    #[sea_orm(column_type = "Custom(\"BLOB\".to_owned())")]
    pub blob_field: String,
@billy1624
Copy link
Member

Hey @johnttan, thanks for the report! PR #685 should fix the issue.

You can try it by cloning the branch, then run cargo run -- generate entity --database-url ... on sea-orm/sea-orm-cli directory.

@billy1624 billy1624 moved this to Triage in SeaQL Dev Tracker May 16, 2022
@billy1624 billy1624 moved this from Triage to Next Up in SeaQL Dev Tracker May 16, 2022
@billy1624 billy1624 moved this from Next Up to In Progress in SeaQL Dev Tracker May 16, 2022
@billy1624 billy1624 moved this from In Progress to Review in SeaQL Dev Tracker May 24, 2022
@billy1624 billy1624 moved this from Review to Done in SeaQL Dev Tracker Jul 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
2 participants