python-mock-firestore icon indicating copy to clipboard operation
python-mock-firestore copied to clipboard

Implement rollback in Transaction

Open anna-hope opened this issue 6 years ago • 0 comments

After #13 is merged, at some point we should make Transaction.rollback actually roll the transaction back.

This could be done by making a deep copy of the MockFirestore data before calling the write ops in Transaction._commit, and restoring the DB to that copy when rolling back.

anna-hope avatar Nov 11 '19 23:11 anna-hope