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

Method isolation_level

graphlite/src/session/transaction_state.rs:83–88  ·  view source on GitHub ↗

Get the isolation level

(&self)

Source from the content-addressed store, hash-verified

81
82 /// Get the isolation level
83 pub fn isolation_level(&self) -> Result<IsolationLevel, ExecutionError> {
84 self.isolation_level
85 .read()
86 .map(|guard| *guard)
87 .map_err(|_| ExecutionError::RuntimeError("Failed to read isolation level".to_string()))
88 }
89
90 /// Set the isolation level
91 pub fn set_isolation_level(&self, level: IsolationLevel) -> Result<(), ExecutionError> {

Callers 1

begin_transactionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected