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

Method get_key

src/models/collection.rs:324–327  ·  view source on GitHub ↗

computes the key used to store the collection in the database

(&self)

Source from the content-addressed store, hash-verified

322
323 /// computes the key used to store the collection in the database
324 pub fn get_key(&self) -> [u8; 8] {
325 let hash = self.get_hash();
326 hash.to_le_bytes()
327 }
328
329 /// creates a path out of the collection name
330 pub fn get_path(&self) -> Arc<Path> {

Callers 2

persistMethod · 0.80
deleteMethod · 0.80

Calls 1

get_hashMethod · 0.80

Tested by

no test coverage detected