khonsulabs / bonsaidb

A developer-friendly document database that grows with you, written in Rust
https://bonsaidb.io/
Apache License 2.0
1.03k stars 37 forks source link

CollectionDocument should have helpers for Transactions #295

Closed ecton closed 1 year ago

ecton commented 1 year ago

Currently, updating a collection document inside of a transaction requires breaking the collection document into parts. It would be preferable to be able to do something like doc.update_in(&mut tx)? to add an update operation to the transaction.