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

Method expect_collection

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

Acquire a handle to the collection state associated with `id`. # Panics Panics if the identified collection does not exist.

(&self, id: GlobalId)

Source from the content-addressed store, hash-verified

239 ///
240 /// Panics if the identified collection does not exist.
241 fn expect_collection(&self, id: GlobalId) -> &CollectionState {
242 self.collections.get(&id).expect("collection must exist")
243 }
244
245 /// Acquire a mutable handle to the collection state associated with `id`.
246 ///

Callers 3

subscribes_targetingMethod · 0.45
target_replicaMethod · 0.45

Calls 2

expectMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected