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

Method log_transaction_operation

graphlite/src/exec/context.rs:235–246  ·  view source on GitHub ↗

Log a transaction operation (undo operation) for rollback

(
        &self,
        operation: crate::txn::UndoOperation,
    )

Source from the content-addressed store, hash-verified

233
234 /// Log a transaction operation (undo operation) for rollback
235 pub fn log_transaction_operation(
236 &self,
237 operation: crate::txn::UndoOperation,
238 ) -> Result<(), crate::exec::error::ExecutionError> {
239 if let Some(transaction_state) = self.transaction_state() {
240 transaction_state.log_transaction_operation(operation)
241 } else {
242 Err(crate::exec::error::ExecutionError::RuntimeError(
243 "No transaction state available for transaction logging".to_string(),
244 ))
245 }
246 }
247
248 /// Get the graph name for operations using session-aware resolution
249 /// Returns full path in /<schema-name>/<graph-name> format

Callers 1

execute_unified_flowMethod · 0.45

Calls 1

transaction_stateMethod · 0.80

Tested by

no test coverage detected