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

Method transaction_state

graphlite/src/exec/context.rs:166–170  ·  view source on GitHub ↗

Get the transaction state from the user session

(&self)

Source from the content-addressed store, hash-verified

164
165 /// Get the transaction state from the user session
166 pub fn transaction_state(&self) -> Option<Arc<crate::session::SessionTransactionState>> {
167 let session_arc = self.get_session()?;
168 let user_session = session_arc.read().ok()?;
169 Some(user_session.transaction_state.clone())
170 }
171
172 /// Get current graph name from session
173 pub fn get_current_graph_name(&self) -> Option<String> {

Calls 2

cloneMethod · 0.80
get_sessionMethod · 0.45

Tested by

no test coverage detected