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

Method collection_mut

src/compute-client/src/controller/instance.rs:232–234  ·  view source on GitHub ↗

Acquire a mutable handle to the collection state associated with `id`.

(&mut self, id: GlobalId)

Source from the content-addressed store, hash-verified

230
231 /// Acquire a mutable handle to the collection state associated with `id`.
232 fn collection_mut(&mut self, id: GlobalId) -> Result<&mut CollectionState, CollectionMissing> {
233 self.collections.get_mut(&id).ok_or(CollectionMissing(id))
234 }
235
236 /// Acquire a handle to the collection state associated with `id`.
237 ///

Callers 2

allow_writesMethod · 0.80
drop_collectionsMethod · 0.80

Calls 2

CollectionMissingClass · 0.85
get_mutMethod · 0.45

Tested by

no test coverage detected