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

Get number of rows updated #1662

Closed
tonyxiao opened this issue Feb 27, 2018 · 3 comments
Closed

Get number of rows updated #1662

tonyxiao opened this issue Feb 27, 2018 · 3 comments

Comments

@tonyxiao
Copy link

Issue type:

[x] question
[ ] bug report
[ ] feature request
[ ] documentation issue

Database system/driver:

[ ] cordova
[ ] mongodb
[ ] mssql
[ ] mysql / mariadb
[ ] oracle
[x] postgres
[ ] sqlite
[ ] sqljs
[ ] websql

TypeORM version:

[x] latest
[ ] @next
[ ] 0.x.x (or put your version here)

When using the various update functions on manager / repository, is it possible to get the # of rows updated back from the database?

@tonyxiao
Copy link
Author

tonyxiao commented Mar 1, 2018

Looking at next branch, seems that this will be address there! https://github.com/typeorm/typeorm/pull/1157/files#diff-4ac32a78649ca5bdd8e0ba38b7006a1eR35

@pleerock
Copy link
Member

pleerock commented Mar 1, 2018

yes thats why we have UpdateResult, however currently it does not have such information. I'll left this issue to the community since its easy to implement (but need to implement for all drivers). Feel free to contribute.

@pleerock
Copy link
Member

Closing as duplicate of #1308

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants