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

Method set_auto_commit

graphlite/src/session/transaction_state.rs:74–80  ·  view source on GitHub ↗

Set auto-commit mode

(&self, enabled: bool)

Source from the content-addressed store, hash-verified

72
73 /// Set auto-commit mode
74 pub fn set_auto_commit(&self, enabled: bool) -> Result<(), ExecutionError> {
75 let mut auto_commit = self.auto_commit.write().map_err(|_| {
76 ExecutionError::RuntimeError("Failed to update auto-commit state".to_string())
77 })?;
78 *auto_commit = enabled;
79 Ok(())
80 }
81
82 /// Get the isolation level
83 pub fn isolation_level(&self) -> Result<IsolationLevel, ExecutionError> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected