-
-
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
Add into_model() for Insert/Update/Delete #148
Comments
related: SeaQL/sea-query#120 |
|
Indeed, it looks like this is supported by postgres, sqlite and mariadb but not mysql... Maybe use a feature flag ?
I don't see how this is different from normal select ? |
Hello, Can you post a pseldo_code to demonstrate how this should work? I am interested in the api level, not in implementations. For me, ideally, insert_many and update_many should always return a compound struct with number of affected rows and a vec of returned records, containg activemodel with the columns the querier asked for or an empty vector otherwise. This would be the clearer way to let everyone to know what is going on in a way that is not so magical that is not intuitive unless you know the framework and is not so low level that makes code umreadable from the user point of view. |
Is this related? |
I think this issue can be closed since #183 handled it ? |
Ty! |
It is a common need to insert/update/delete and select some return columns as a single query. Currently sea-orm does not make this easy, so I think having ideally
into_model()
for Insert/Update/Delete would be very convenient. What do you think ?The text was updated successfully, but these errors were encountered: