-
-
Notifications
You must be signed in to change notification settings - Fork 520
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
Is it possible to have 4 values Composite Key? #352
Comments
Hey @videobitva, welcome and thanks for the report! I will be creating a PR to support up to 6 values composite key. Stay tuned :P |
Hey @videobitva, please check the PR below You can try it by updating your sea-orm dep as follow sea-orm = { version = "^0", git = "https://github.com/SeaQL/sea-orm.git", branch = "issues/352", ... } |
Wow, that was fast. Checked out it just now, and it just works. Thank you! |
Welcome! Will let you know once it's released |
Fixed on 0.4.1 CC @videobitva |
I am (allegedly at least) on 0.4.2 and I've been getting a panic when I have composite keys with more than 3 columns. This is my entry from [[package]]
name = "sea-orm"
version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4f594c2a48a3f2c7c911187c67a39d08f63af932801073737358bef0b5f06576" Am I missing something here? |
Hey @ammongit, could you show me the error messages? |
I'm compiling sea-orm = { version = "0.4.2", features = [ "sqlx-mysql", "runtime-async-std-native-tls" ]} |
Can you remove the lines below then execute source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4f594c2a48a3f2c7c911187c67a39d08f63af932801073737358bef0b5f06576" |
It's running via Docker. When attempting to insert an
The insert here is the prior insertion and shouldn't be related to this I believe. |
Ahhh... I see. This is another problem |
I haven't rebuilt it in the container, but removing that and re-running |
Wait... let me rebase it onto 0.4.2 |
The build took a bit, but I'm getting a different (non-Sea-ORM) error now. Looking at the log, it looks like it was able to insert properly. I had the following in my sea-orm = { git = "https://github.com/SeaQL/sea-orm", branch = "fix-higher-arity-composite-key", features = ["sqlx-postgres", "runtime-async-std-rustls", "macros"], default-features = false }
|
Hello there!
I was trying to implement a 4 value Composite Key, here is what I got:
Here is what I got in return from cargo check:
If I try to create a Composite Key of 3 values or less everything is fine.
Is there any workaround to have a 4 values Composite Key in SeaORM?
Thank you!
The text was updated successfully, but these errors were encountered: