MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / is_empty

Method is_empty

sdks/rust/src/client_cache.rs:169–174  ·  view source on GitHub ↗

Returns whether the applied diff is empty.

(&self)

Source from the content-addressed store, hash-verified

167
168 /// Returns whether the applied diff is empty.
169 pub(super) fn is_empty(&self) -> bool {
170 self.deletes.is_empty()
171 && self.inserts.is_empty()
172 && self.update_deletes.is_empty()
173 && self.update_inserts.is_empty()
174 }
175
176 /// Returns the deleted rows in this diff.
177 pub(super) fn deletes(&self) -> impl '_ + Iterator<Item = &'r Row> {

Callers 4

derive_updatesMethod · 0.45
apply_diff_to_tableMethod · 0.45
env_override_pathFunction · 0.45

Calls

no outgoing calls

Tested by 1

env_override_pathFunction · 0.36