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

Method strictness_level

graphlite/src/txn/isolation.rs:61–68  ·  view source on GitHub ↗

Get the strictness level (higher number = more strict)

(&self)

Source from the content-addressed store, hash-verified

59
60 /// Get the strictness level (higher number = more strict)
61 pub fn strictness_level(&self) -> u8 {
62 match self {
63 IsolationLevel::ReadUncommitted => 0,
64 IsolationLevel::ReadCommitted => 1,
65 IsolationLevel::RepeatableRead => 2,
66 IsolationLevel::Serializable => 3,
67 }
68 }
69
70 /// Check if this isolation level is at least as strict as another
71 pub fn is_at_least_as_strict_as(&self, other: &IsolationLevel) -> bool {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected