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

Prelude does not export BlobSize #1543

Closed
Sytten opened this issue Mar 15, 2023 · 3 comments · Fixed by #1548
Closed

Prelude does not export BlobSize #1543

Sytten opened this issue Mar 15, 2023 · 3 comments · Fixed by #1548
Assignees

Comments

@Sytten
Copy link
Contributor

Sytten commented Mar 15, 2023

Description

I updated some code from 0.10.3 to 0.11.1. The generated entities now have a column type with BlobSize set, but the prelude doesn't contain that export so it causes a compilation error.

Steps to Reproduce

  1. Create Postgres table with a blob
  2. Run the CLI to generate entities

Expected Behavior

Prelude should export the BlobSize or the CLI should generate the proper import for it.

Actual Behavior

BlobSize is missing

Reproduces How Often

Always

Workarounds

You import it manually, but it's not ideal since it gets overridden on the next generation

Versions

├── sea-orm v0.11.1
│   ├── sea-orm-macros v0.11.1 (proc-macro)
│   ├── sea-query v0.28.3
│   │   ├── sea-query-derive v0.3.0 (proc-macro)
│   ├── sea-query-binder v0.3.0
│   │   ├── sea-query v0.28.3 (*)
│   ├── sea-strum v0.23.0
│   │   └── sea-strum_macros v0.23.0 (proc-macro)
├── sea-query v0.28.3 (*)
├── sea-orm v0.11.1 (*)
@billy1624
Copy link
Member

billy1624 commented Mar 17, 2023

Hey @Sytten, welcome back! I just open a PR to address this issue.

@Sytten
Copy link
Contributor Author

Sytten commented Mar 17, 2023

Thanks! Love you guys so much. Didnt have time to contribute much (probably not much until april), but getting back into it.

@billy1624
Copy link
Member

Has been fixed on 0.11.2

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
Development

Successfully merging a pull request may close this issue.

2 participants