MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / is_read_only

Method is_read_only

atomic-core/src/pristine/txn/pristine.rs:236–238  ·  view source on GitHub ↗

Whether this handle shares redb's read lock instead of the write lock.

(&self)

Source from the content-addressed store, hash-verified

234impl Pristine {
235 /// Whether this handle shares redb's read lock instead of the write lock.
236 pub fn is_read_only(&self) -> bool {
237 matches!(self.db, PristineDatabase::ReadOnly(_))
238 }
239}
240
241impl PristineDatabase {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected