MCPcopy Create free account
hub / github.com/cosdata/cosdata / get_current_version

Method get_current_version

src/models/versioning.rs:207–212  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

205 }
206
207 pub fn get_current_version(&self) -> lmdb::Result<VersionNumber> {
208 let txn = self.env.begin_ro_txn()?;
209 let version = self.get_current_version_inner(&txn)?;
210 txn.abort();
211 Ok(version)
212 }
213
214 pub fn set_current_version_explicit(
215 &self,

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected