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

Method for_session

graphlite/src/exec/result.rs:78–87  ·  view source on GitHub ↗

Create a query result for a session statement

(session_result: SessionResult)

Source from the content-addressed store, hash-verified

76
77 /// Create a query result for a session statement
78 pub fn for_session(session_result: SessionResult) -> Self {
79 Self {
80 rows: Vec::new(),
81 variables: Vec::new(),
82 execution_time_ms: 0,
83 rows_affected: 0,
84 session_result: Some(session_result),
85 warnings: Vec::new(),
86 }
87 }
88
89 /// Add a warning to the query result
90 pub fn add_warning(&mut self, warning: String) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected