Detect whether any table changed since the last call. The first call will always return `true`.
(&mut self)
| 30 | /// |
| 31 | /// The first call will always return `true`. |
| 32 | pub fn any_changes(&mut self) -> bool { |
| 33 | let mut any_change = false; |
| 34 | |
| 35 | for (table, entry) in DB.tables().into_iter().zip(&mut self.prev_seq) { |
| 36 | let new_seq = table.last_seq(); |
| 37 | let old_seq = std::mem::replace(entry, new_seq); |
| 38 | any_change |= old_seq != new_seq; |
| 39 | } |
| 40 | |
| 41 | any_change |
| 42 | } |
| 43 | } |
no test coverage detected