MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / extend_from

Method extend_from

src/sql/src/names.rs:2352–2359  ·  view source on GitHub ↗

Merges all entries from `other` into `self`.

(&mut self, other: &ResolvedIds)

Source from the content-addressed store, hash-verified

2350
2351 /// Merges all entries from `other` into `self`.
2352 pub fn extend_from(&mut self, other: &ResolvedIds) {
2353 for (id, gids) in &other.entries {
2354 self.entries
2355 .entry(*id)
2356 .or_default()
2357 .extend(gids.iter().copied());
2358 }
2359 }
2360
2361 /// Create a new [`ResolvedIds`] that contains the elements from `self`
2362 /// where `predicate` returns `true`.

Callers 4

sql_implFunction · 0.80
record_sql_impl_idsMethod · 0.80
newMethod · 0.80

Calls 3

extendMethod · 0.45
entryMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected