thedodd / wither

An ODM for MongoDB built on the official MongoDB Rust driver.
https://docs.rs/wither
Other
325 stars 40 forks source link

Implement model & instance level `update` methods. #5

Closed thedodd closed 6 years ago

thedodd commented 6 years ago

Model.save is good. Works as needed, but update is needed for atomic operations so that concurrent updates to a document do not result in data loss or data races.

SamuelMarks commented 6 years ago

Great idea!

thedodd commented 6 years ago

Should be able to knock this out tomorrow.

thedodd commented 6 years ago

@SamuelMarks as you are the only other person to have commented on this thread, you are welcome to take a gander at https://github.com/thedodd/wither/pull/6 for some quick feedback. Else, I will go ahead and make this available as 0.4.0 tomorrow.

SamuelMarks commented 6 years ago

Looks good!