Get the strictness level (higher number = more strict)
(&self)
| 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 { |
no outgoing calls
no test coverage detected