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

sea-orm-cli 1.0 doesn't support mysql type: bit #2312

Closed
uf-fipper opened this issue Aug 5, 2024 · 2 comments · Fixed by #2313
Closed

sea-orm-cli 1.0 doesn't support mysql type: bit #2312

uf-fipper opened this issue Aug 5, 2024 · 2 comments · Fixed by #2313
Assignees

Comments

@uf-fipper
Copy link

thread 'main' panicked at D:\Program Files\rust\cargo\registry\src\rsproxy.cn-0dccff568467c15b\sea-orm-codegen-1.0.0\src\entity\column.rs:80:22:
not implemented
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

But when I use 0.12.15, it works.

@AntoinePrv
Copy link

Same with Postgres using the migration

.col(
    ColumnDef::new(UploadedFile::Sha256).bit(Some(256))
)

Generates a bit(256) in Postgres, then running sea-orm-cli generate (1.0.0), I run into the same error, originated in this list where Bit is not mentionned.

_ => unimplemented!(),

I would be cool to have support for a fixed sized rust data type too!

@billy1624
Copy link
Member

Hey everyone, thanks for the report!! Could you please try the PR:

cargo install sea-orm-cli --force --git https://github.com/SeaQL/sea-orm --branch codegen-col-type-resolution

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 a pull request may close this issue.

3 participants