-
-
Notifications
You must be signed in to change notification settings - Fork 523
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
Drop Default
trait bound of PrimaryKeyTrait::ValueType
#205
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm thinking how to get rid of all these...
// This
<<Self as ActiveModelTrait>::Entity as EntityTrait>::PrimaryKey:
PrimaryKeyValue<<Self as ActiveModelTrait>::Entity>,
// And this
<<A as ActiveModelTrait>::Entity as EntityTrait>::PrimaryKey:
PrimaryKeyValue<<A as ActiveModelTrait>::Entity>,
Got this error, somehow...
https://github.com/SeaQL/sea-orm/runs/3719025255#step:5:290 Might be related launchbadge/sqlx#326 |
Thanks. It looks good generally. Though I don't understand why we have to add a new trait I think the existing API provides sufficient info for us to implement |
I don't want to include
I think the only way to extract either |
I think, since our identity is only a tuple of 1, 2 or 3, Iterable actually is able to tell us the arity I suppose. |
Something like this? sea-orm/src/entity/base_entity.rs Lines 242 to 257 in beb3ec6
|
Still WIP? |
Stuck on this |
Yes, should be. |
still stuck? |
Yep loll |
I can avoid add a new trait by putting |
No we don't need that either |
* Add a "with-array" option for postgres. This introduces "Array" as a new Value variant. It can be derived from all Vec<T> types, where T is a valid Value, except for u8, which is already handled by Bytes. * Fix typo. Co-authored-by: Chris Tsang <[email protected]>
PrimaryKeyTrait::ValueType: Default
is needed? #171FromValueTuple
trait sea-query#160