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

Method set_cluster

src/sql/src/session/vars.rs:918–925  ·  view source on GitHub ↗
(&mut self, cluster: String)

Source from the content-addressed store, hash-verified

916 }
917
918 pub fn set_cluster(&mut self, cluster: String) {
919 let var = self
920 .vars
921 .get_mut(UncasedStr::new(CLUSTER.name()))
922 .expect("cluster variable must exist");
923 var.set(VarInput::Flat(&cluster), false)
924 .expect("setting cluster must succeed");
925 }
926
927 pub fn set_local_transaction_isolation(&mut self, transaction_isolation: IsolationLevel) {
928 let var = self

Callers 1

new_internalMethod · 0.80

Calls 4

expectMethod · 0.80
get_mutMethod · 0.45
nameMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected