MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / set_value

Method set_value

graphlite/src/exec/result.rs:243–251  ·  view source on GitHub ↗

Set a value in the row

(&mut self, name: String, value: Value)

Source from the content-addressed store, hash-verified

241
242 /// Set a value in the row
243 pub fn set_value(&mut self, name: String, value: Value) {
244 self.values.insert(name, value.clone());
245 // For simplicity, we'll rebuild positional values when setting individual values
246 // In a production system, you'd want to maintain position mapping
247 if !self.positional_values.is_empty() {
248 // Update the existing positional value if it exists
249 // This is a simplified approach - production code would need better position tracking
250 }
251 }
252
253 /// Track the source entity for a variable
254 /// This enables identity-based comparison in set operations

Callers 2

Calls 3

cloneMethod · 0.80
insertMethod · 0.45
is_emptyMethod · 0.45

Tested by

no test coverage detected