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

Method required_capability_version

atomic-core/src/pristine/txn/read.rs:165–171  ·  view source on GitHub ↗
(&self, id: &str)

Source from the content-addressed store, hash-verified

163
164impl CapabilityTxnT for ReadTxn {
165 fn required_capability_version(&self, id: &str) -> PristineResult<Option<u32>> {
166 let table = self.txn.open_table(PRISTINE_META)?;
167 let version = table
168 .get(capability_metadata_key(id).as_str())?
169 .map(|version| version.value());
170 Ok(version)
171 }
172}
173
174impl PathClaimTxnT for ReadTxn {

Calls 4

capability_metadata_keyFunction · 0.85
valueMethod · 0.80
getMethod · 0.65
as_strMethod · 0.45

Tested by 1

capability_rowFunction · 0.36