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

Use BitVec and BitArray from bitvec crate for Bit and VarBit column types #2410

Open
bismitpanda opened this issue Nov 7, 2024 · 1 comment

Comments

@bismitpanda
Copy link

bismitpanda commented Nov 7, 2024

Description

Sea ORM uses Vec<u8> for Bit and VarBit with length greater than 1 and bool for length 1 or none. But it should use bitvec::vec::BitVec for VarBit and bitvec::array::BitArray for Bit. Also for postgres types like Inet (can use std::net::IpAddr), Cidr and MacAddress

Steps to Reproduce

  1. Use a schema with data type Bit or VarBit
  2. Run migration
  3. Generate scheme

Expected Behavior

generates field with type BitVec or BitArray

Actual Behavior

generates field with type String

Reproduces How Often

Everytime

Workarounds

No idea

Versions

sea-orm version: 1.1.0
OS: Ubuntu 24.04
Database: Postgres 16
Rust version: 1.84 (nightly)

@bismitpanda
Copy link
Author

Any updates on this?

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

No branches or pull requests

1 participant