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

Method new

src/sql/src/session/vars.rs:257–265  ·  view source on GitHub ↗
(var: VarDefinition)

Source from the content-addressed store, hash-verified

255
256impl SessionVar {
257 pub const fn new(var: VarDefinition) -> Self {
258 SessionVar {
259 definition: var,
260 default_value: None,
261 local_value: None,
262 staged_value: None,
263 session_value: None,
264 }
265 }
266
267 /// Checks if the provided [`VarInput`] is valid for the current session variable, returning
268 /// the formatted output if it's valid.

Callers

nothing calls this directly

Calls 13

all_dyncfgsFunction · 0.50
collectMethod · 0.45
mapMethod · 0.45
entriesMethod · 0.45
defaultMethod · 0.45
nameMethod · 0.45
descMethod · 0.45
cloneMethod · 0.45
scopedMethod · 0.45
scopeMethod · 0.45
into_iterMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected