Skip to content

Commit

Permalink
is_empty support for transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
abdolence committed Sep 1, 2023
1 parent c06fd45 commit 27e1f76
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/db/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ impl<'a> FirestoreTransaction<'a> {

Ok(())
}

pub fn is_empty(&self) -> bool {
self.writes.is_empty()
}
}

impl<'a> Drop for FirestoreTransaction<'a> {
Expand Down

0 comments on commit 27e1f76

Please sign in to comment.