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

Method from

graphlite/src/txn/isolation.rs:103–110  ·  view source on GitHub ↗
(ast_level: crate::ast::IsolationLevel)

Source from the content-addressed store, hash-verified

101/// Convert from AST isolation level to transaction isolation level
102impl From<crate::ast::IsolationLevel> for IsolationLevel {
103 fn from(ast_level: crate::ast::IsolationLevel) -> Self {
104 match ast_level {
105 crate::ast::IsolationLevel::ReadUncommitted => IsolationLevel::ReadUncommitted,
106 crate::ast::IsolationLevel::ReadCommitted => IsolationLevel::ReadCommitted,
107 crate::ast::IsolationLevel::RepeatableRead => IsolationLevel::RepeatableRead,
108 crate::ast::IsolationLevel::Serializable => IsolationLevel::Serializable,
109 }
110 }
111}
112
113/// Convert to AST isolation level from transaction isolation level

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected